"Erik Price" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > > On Wednesday, May 8, 2002, at 03:28 PM, Kyle Gibson wrote: > > >> What do you think? > > > > Try > > > > array_pop($array); > > > > array_pop() is perfect, except that I don't want to take the last > element off the end. Otherwise I would definitely use it. > > Erik >
$array = array_values($array) will re-index your array without the need for array_pop and array_push. -- Daniel Grace -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php