note 11357 added to next

From: Date: Sat, 17 Feb 2001 22:22:33 +0000
Subject: note 11357 added to next
Groups: php.notes 
Request: Send a blank email to php-notes+get-11189@lists.php.net to get a copy of this message
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. http://www.php.net/manual/en/function.next.php

« previous php.notes (#11189) next »