SyntaxFix
Write A Post
Hire A Developer
Questions
Just discovered a handy way to get an index while parsing. My mind was blown.
$handle = fopen("test.csv", "r"); for ($i = 0; $row = fgetcsv($handle ); ++$i) { // Do something will $row array } fclose($handle);
Source: link