View Full Version : Array stuff
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.
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
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.