On December 5, 2001 01:29 am, Stig S. Bakken wrote:
> Splitting a CSV string into an array could be done like this too:
>
> $fields = explode('","', trim($string, '"'));
Hey Stig,
I don't think that it is quite that simple. :) The sample code
will break for unquoted values and weird combos of quotes and
commas inside quote-delimited strings.
--zak
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]