RE: [PHP] Parsing a CSV file

From: Date: Wed, 03 Oct 2001 12:43:23 +0000
Subject: RE: [PHP] Parsing a CSV file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69762@lists.php.net to get a copy of this message
That won't do if the list is 'R001,23,"2,5"'. I'd break that to parts with preg_match_all(). Niklas -----Original Message----- From: alvarez@sto13.st-oneline.de [mailto:alvarez@sto13.st-oneline.de] Sent: 3. lokakuuta 2001 15:08 To: php-general@lists.php.net; shah@sonata-software.com Subject: Re: [PHP] Parsing a CSV file sure. explode (',', $yourdata) is what you are looking for. use file () to read in the file and use foreach () to iterate over the lines. D. Alvarez Arribas <alvarez@st-oneline.net> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#69762) next »