This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 24th, 2012  |  syntax: None  |  size: 0.27 KB  |  views: 125  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data