Re: csv problem.. read csv from var

From: Date: Fri, 16 Feb 2007 19:43:50 +0000
Subject: Re: csv problem.. read csv from var
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-43091@lists.php.net to get a copy of this message
Hi sorry, I misunderstood your problem, it was not too clear to me as the code you list shouldn't produce the output you supplied. try this: $array = explode(',', $csv); print "<br>= " . $array[0] . "\n"; print "<br>= " . $array[1] . "\n"; for ($i = 2; $i < count($array); ++$i) { $txt.= "<br />=" . $array[$i] . "\n"; } print $txt; Niel

« previous php.db (#43091) next »