note 113166 deleted from function.count by cmb
| From: | cmb@php.net | Date: | Tue, 04 Oct 2016 18:07:29 +0000 |
| Subject: | note 113166 deleted from function.count by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-206770@lists.php.net to get a copy of this message | ||
Note Submitter: me at me dot com
----
To the poster above, the fastest way is to use 'do/while'. Try this way, you will find it
faster than 'for'.
$arrayCount = count($array);
do{
// some code here
--$arrayCount;
}
while($arrayCount > 0);