note 52919 deleted from function.fgetcsv by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 18:17:23 +0000 |
| Subject: | note 52919 deleted from function.fgetcsv by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155095@lists.php.net to get a copy of this message | ||
Note Submitter: Bob Kolk
----
Dave Meiners above example is great, except that you need to need to add one to the final length to
account for EOL. So it'd be:
while ($data = fgetcsv($handle, ($length+1), ","))