note 74821 deleted from function.fgetcsv by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 18:10:58 +0000 |
| Subject: | note 74821 deleted from function.fgetcsv by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155075@lists.php.net to get a copy of this message | ||
Note Submitter: Bob
----
Thank you to the mystery contributor of csv_string_to_array function:
http://uk3.php.net/manual/en/function.fgetcsv.php#62524
This works great when your CSV data has literal commas inside enclosures that you want to preserve,
fgetcsv fails at this & interprets comma as end of item even without ending enclosure.