[prev in list] [next in list] [prev in thread] [next in thread]
List: php-general
Subject: [PHP] CSV explode problem
From: V Patel <lists.vp () gmail ! com>
Date: 2004-06-23 14:58:26
Message-ID: ca7e1de404062307582763eba0 () mail ! gmail ! com
[Download RAW message or body]
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic