note 113440 deleted from function.count by cmb
| From: | cmb@php.net | Date: | Tue, 04 Oct 2016 18:06:15 +0000 |
| Subject: | note 113440 deleted from function.count by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-206767@lists.php.net to get a copy of this message | ||
Note Submitter: lopezvit at gmail dot com
----
I think that maybe that is faster (I don't know why, because, at least in C, for loops are
faster than while ones due to compile optimization) but what is sure is that, in case the list is
empty, you are going to iterate over the loop at least one. And I'm sure that is not what you
want to do. The correct way in this occassion is to use a normal while, not a do, while.