note 11572 added to next
| From: | php dot 3 dot niels2000 at spamgourmet dot com | Date: | Mon, 26 Feb 2001 02:23:10 +0000 |
| Subject: | note 11572 added to next | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11592@lists.php.net to get a copy of this message | ||
To traverse an array from the first element, you can use a do/while loop.
$a = $array[0];
do {
// do stuff with $a
} while ($a = next($array));
http://www.php.net/manual/en/function.next.php