Re: Re: reindexing an array after unset()

From: Date: Wed, 08 May 2002 19:45:26 +0000
Subject: Re: Re: reindexing an array after unset()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-96640@lists.php.net to get a copy of this message
array_pop() is perfect, except that I don't want to take the last element off the end. Otherwise I would definitely use it.
Try what Nathan suggested and use a subsitute value for the last value, that way it gets knocked off instead. -Kyle

« previous php.general (#96640) next »