Re: Function Request: csv_explode()

From: Date: Thu, 06 Dec 2001 12:38:56 +0000
Subject: Re: Function Request: csv_explode()
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-72743@lists.php.net to get a copy of this message
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

« previous php.dev (#72743) next »