Skip to content

Instantly share code, notes, and snippets.

@Halama
Created February 14, 2014 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Halama/8998609 to your computer and use it in GitHub Desktop.
Save Halama/8998609 to your computer and use it in GitHub Desktop.
<?php
$csvFile = new CsvFile(__DIR__ . '/_data/simple.csv');
$cols = $csvFile->getHeader());
$csvFile->next();
while($csvFile->valid()) {
$row = $csvFile->current();
var_dump($row);
$csvFile->next();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment