note 78742 rejected from function.count by tularis
| From: | tularis@php.net | Date: | Thu, 25 Oct 2007 22:06:47 +0000 |
| Subject: | note 78742 rejected from function.count by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-131737@lists.php.net to get a copy of this message | ||
Note Submitter: Jaik
----
The last comment is somewhat inefficient as it runs the count() function at the start of every loop.
The preferred way to iterate through an array would be to use the 'foreach' control
structure.