note 11902 added to function.array-slice.php
| From: | php-general at lists dot php dot net | Date: | Tue, 13 Mar 2001 03:10:16 +0000 |
| Subject: | note 11902 added to function.array-slice.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12320@lists.php.net to get a copy of this message | ||
$flags = array(
1 => "One",
2 => "Two",
4 => "Four",
8 => "Eight"
);
Run array_slice on this and you get your indexes changed to 1,2,3,4. What if I want to keep the
original numbering?
http://www.php.net/manual/en/function.array-slice.php