Re: csv problem.. read csv from var

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux