Reading a csv from a file example

"; //how many data points in this row? $rowDataCount = count($data); //for each item of data in this row... for ($i=0; $i < $rowDataCount; $i++) { //if it's the first row of the file, output a table header: if ($row==0){ echo ""; } else { //otherwise, output a normal table data: echo ""; } } //close the row tag echo ""; //increment our row counter $row++; } //Close the file data stream fclose($file); ?>
".$data[$i]."".$data[$i]."