View Full Version : Array stuff
Josh Campbell
03-25-2003, 08:23 PM
In PHP, how do you remove an array element at a certain position or with a certain key?
I think array_splice() would get you closest - have a gander at that in the manual.
Jason
03-25-2003, 11:03 PM
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
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.