...

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?

Íkii
03-25-2003, 09:05 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum