PHP CSV Reader
I’ve never really built a definitive CSV reader and end up building a quick implementation of one any time I need one.
But after working on the chunk script I decided that next time I build a CSV class I’d do it properly.
<?php require('class.csv.php'); header('Content-type: text/plain'); $csv = new CSV('test.csv'); while ($row = $csv->read()) { print_r($row); }