$row = 1; $handle = fopen("tipala.csv", "r"); while (($data = fgetcsv($handle, 1000, ";")) !== FALSE) { $last_good_data=$data; $num = count($data); echo "
$num fields in line $row:
xxxxxx
"; for ($c=0; $c < $num; $c++) { echo $last_good_data[$c]. "