Miscellany
public text v1 · immutable$row = 1;
$handle = fopen("tipala.csv", "r");
while (($data = fgetcsv($handle, 1000, ";")) !== FALSE) {
$last_good_data=$data;
$num = count($data);
echo "<p> $num fields in line $row: <br /></p>\n";
//echo "TEST ".$data[0] ;
$row++;
for ($c=0; $c < $num; $c++) {
echo $data[$c] . "<br />\n";
}
}
echo "<p>xxxxxx</p>";
for ($c=0; $c < $num; $c++) { echo $last_good_data[$c]. "<br />\n"; }
fclose($handle);