re-keying an array
| From: | Justin French | Date: | Fri, 30 Apr 2004 01:48:06 +0000 |
| Subject: | re-keying an array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-184990@lists.php.net to get a copy of this message | ||
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