CSV explode problem
| From: | V Patel | Date: | Wed, 23 Jun 2004 14:58:26 +0000 |
| Subject: | CSV explode problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-188876@lists.php.net to get a copy of this message | ||
I have a csv string. But the string also contains other strings with commas.
Explode is not working with this kind of string. For example,
1,2,3,"this string gets parsed , at the comma"
Result of explode(",",string) is
1
2
3
this string gets parsed
at the comma
But what I want is
1
2
3
this string gets parsed , at the comma
I am not fluent with regular expressions. If anybody could help.
Thanks,
Vp