Re: re-keying an array

From: Date: Fri, 30 Apr 2004 02:03:27 +0000
Subject: Re: re-keying an array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-184992@lists.php.net to get a copy of this message
http://www.php.net/manual/en/function.array-values.php ? Richard Friday, April 30, 2004, 3:48:06 AM, thus was written: > been RTFMing for about 10 minutes, and can't find the function to > re-key an array. In other words, I want an array of items to remain in > their current order, but have the keys renumbered counting from zero. > yes, I know it can be done with a foreach, but I was hoping for > something native :) > can anyone point me to the right page in the manual? > --- > Justin French > http://indent.com.au

« previous php.general (#184992) next »