note 11698 deleted from function.next by jimw
| From: | jimw@php.net | Date: | Thu, 20 Dec 2001 22:08:19 +0000 |
| Subject: | note 11698 deleted from function.next by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23471@lists.php.net to get a copy of this message | ||
Even better:
for (reset($array); next ($array);){
//DO STUFF
}
This also watches out for arrays with no elements yet. As usual with next() and reset(), if you
have an element = '0', it will break early.