note 93551 deleted from function.fgetcsv by danbrown
| From: | danbrown@php.net | Date: | Wed, 16 Sep 2009 03:18:29 +0000 |
| Subject: | note 93551 deleted from function.fgetcsv by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160599@lists.php.net to get a copy of this message | ||
Note Submitter: joel dot pearson at agiledigital dot com dot au
----
The final code below for reducing overheads for long loops is incorrect.
k at vi1 dot co dot uk put the following:
$total = count($array);
while ($i<count($array))
It is meant to be:
$total = count($array);
while ($i < $total)
Otherwise there is no benefit at all.