note 65586 deleted from function.each by nicobn

[email protected] Fri, 18 Feb 2011 08:07:55 -0800
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: scin 

----

Regarding the user who states that foreach is faster, this depends on the size of the array you are dealing with.

On large arrays while(list($key, $val) = each($array) is considerably faster, as in 10x faster with arrays that number in the millions of elements.