NYCPHP Meetup

NYPHP.org

[nycphp-talk] Removing one element from an array

David Krings ramons at gmx.net
Mon Jul 9 20:16:42 EDT 2007


Hi!

I have an array with numerical keys. I need to remove one element of the 
array and then rekey the array to have consecutive keys again. I got the 
rekeying down, but how do I pop off an array element in the middle of an 
array? Is that done using unset($array[123]) ? I'm having a 
deer-staring-in-the-headlights-moment.

David



More information about the talk mailing list