note 11357 deleted from function.next by aidan
| From: | aidan@php.net | Date: | Sat, 18 Sep 2004 04:32:32 +0000 |
| Subject: | note 11357 deleted from function.next by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76915@lists.php.net to get a copy of this message | ||
Note Submitter: justin at homeboyz dot cpom
----
A weird behavior of next():
If you have a next($arrayName) inside os a foreach($arrayName), you would expect that both of them
would advance the array cursor, resulting in your code traversing every other element of the array.
It appears that this is not the case; every element will be traversed.