<?php
$row = 1;
$handle = fopen("test.csv", "r");
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
$num = count($data);
echo "<p> $num полей в строке $row: ";
$row++;
for ($c=0; $c < $num; $c++) {
echo $data[$c] . " ";
}
}
fclose($handle);
?>