Re: [PHP] CSV explode problem

2004-06-23 Thread Matt Matijevich
[snip] Any help with parsing a string to replace those comma in string? [/snip] this was in the user comments on http://www.php.net/manual/en/function.fgetcsv.php function csv_split($line,$delim=',',$removeQuotes=true) { #$line: the csv line to be split #$delim: the delimiter to split by #$remov

Re: [PHP] CSV explode problem

2004-06-23 Thread V Patel
Justing, I will be waiting for your response Thanks, vp On Wed, 23 Jun 2004 08:19:55 -0700, Justin Patrin <[EMAIL PROTECTED]> wrote: > > V Patel wrote: > > > Input is a large string. We have no control over the file, so its not > > coming from the file. > > > > Any help with parsing a string t

Re: [PHP] CSV explode problem

2004-06-23 Thread Justin Patrin
V Patel wrote: Input is a large string. We have no control over the file, so its not coming from the file. Any help with parsing a string to replace those comma in string? On Wed, 23 Jun 2004 10:12:16 -0500, Matt Matijevich <[EMAIL PROTECTED]> wrote: [snip] I have a csv string. But the string also

Re: [PHP] CSV explode problem

2004-06-23 Thread V Patel
Input is a large string. We have no control over the file, so its not coming from the file. Any help with parsing a string to replace those comma in string? On Wed, 23 Jun 2004 10:12:16 -0500, Matt Matijevich <[EMAIL PROTECTED]> wrote: > > > [snip] > I have a csv string. But the string also con

Re: [PHP] CSV explode problem

2004-06-23 Thread Matt Matijevich
[snip] I have a csv string. But the string also contains other strings with commas. [/snip] is the csv coming from a file? if it is try http://www.php.net/manual/en/function.fgetcsv.php if not there is some user comments on that page that might help. -- PHP General Mailing List (http://www.p

[PHP] CSV explode problem

2004-06-23 Thread V Patel
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 str