note 11572 deleted from function.next by jimw
| From: | jimw@php.net | Date: | Thu, 20 Dec 2001 22:08:01 +0000 |
| Subject: | note 11572 deleted from function.next by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23470@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));