note 65586 deleted from function.each by nicobn
| From: | nicobn@php.net | Date: | Fri, 18 Feb 2011 16:07:55 +0000 |
| Subject: | note 65586 deleted from function.each by nicobn | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-177121@lists.php.net to get a copy of this message | ||
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.