SHARE
TWEET

Untitled

a guest Sep 24th, 2012 225 Never
  1. if (($handle = fopen("Day1.CSV", "r")) !== FALSE)
  2. {
  3.     while (($data = fgetcsv($handle, 1000, ",", "//")) !== FALSE)
  4.     {
  5.         // do something with the data here
  6.         echo $data[0] . " - ". $data[1] . " - ". $data[2] . "</br>" ;
  7.     }
  8.     fclose($handle);
  9. }
RAW Paste Data
Top