Advertisement
Guest User

Untitled

a guest
Sep 24th, 2012
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement