fgetcsv Help
| From: | Richard Baskett | Date: | Wed, 11 Dec 2002 08:13:07 +0000 |
| Subject: | fgetcsv Help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-127765@lists.php.net to get a copy of this message | ||
I am parsing a csv file with fgetcsv and the fields are surrounding by
double quotes, now I am running into a problem periodically that when there
are quotes within the value it is treating it like another value instead of
the same value.
Any ideas on how to get around that?
I am thinking I might have to convert all quotes to " and then turn all
"," back into quotes and then the first " in the file and
then last one since obviously they will not have a comma in between them.
This seems like a while lot of work..
Ideas?
Rick
A wise women once said: " No one can help everybody, but everybody can help
somebody." - Unknown