Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- remove a key
- Jeff Thies
April 13, 2010, 12:42 am
rate this thread
I have an array of 40 elements. Is there a simple way to remove the
say, the 3rd and 20th key and leave the rest intact so the new array
would have 38 elements. Or do I need to iterate through with a counter
and make a new array? Seems like there might be a php function for that,
but I can't find it.