note 55523 deleted from function.fgetcsv by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 18:17:03 +0000 |
| Subject: | note 55523 deleted from function.fgetcsv by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155092@lists.php.net to get a copy of this message | ||
Note Submitter: andychr17 at hotmail dot com
----
The man below suggested this to avoid and endless loop from using "!== FALSE":
while (($data = fgetcsv($handle, 1000, ",")) != FALSE) {
This is redundant, if you want to do it with the != you may as well do:
while ($data = fgetcsv($handle, 1000, ",")) {