Read csv file : CSV « Development « PHP






Read csv file


<?php
   $file = "./demoCSV.csv";
   $fh = fopen($file, "rt");
   $userdata = fread($fh, filesize($file));
   fclose($fh);

   echo $userdata; 
?>

           
       








Related examples in the same category

1.Loading table data from a CSV file
2.explode CSV file
3.fgetcsv: read a csv file