note 93551 added to function.fgetcsv
| From: | joel dot pearson at agiledigital dot com dot au | Date: | Wed, 16 Sep 2009 03:17:34 +0000 |
| Subject: | note 93551 added to function.fgetcsv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160598@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 117.55.229.1
Probable Submitter: 150.101.125.231
----
Manual Page -- http://www.php.net/manual/en/function.fgetcsv.php
Edit -- https://master.php.net/note/edit/93551
Del: integrated -- https://master.php.net/note/delete/93551/integrated
Del: useless -- https://master.php.net/note/delete/93551/useless
Del: bad code -- https://master.php.net/note/delete/93551/bad+code
Del: spam -- https://master.php.net/note/delete/93551/spam
Del: non-english -- https://master.php.net/note/delete/93551/non-english
Del: in docs -- https://master.php.net/note/delete/93551/in+docs
Del: other reasons-- https://master.php.net/note/delete/93551
Reject -- https://master.php.net/note/reject/93551
Search -- https://master.php.net/manage/user-notes.php