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?

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

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


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum