PDA

View Full Version : Array stuff



Josh Campbell
03-25-2003, 09:23 PM
In PHP, how do you remove an array element at a certain position or with a certain key?

Íkii
03-25-2003, 10:05 PM
I think array_splice() would get you closest - have a gander at that in the manual.

Jason
03-26-2003, 12:03 AM
you would want to use array_splice()


array_splice(array, offset [ , length] [ , replacement])
-removes a sub-array from the array and replaces it with the elements of the replacement array and returns an array containing the removed elements


Jason