<?php ini_set('auto_detect_line_endings',TRUE); $handle = fopen('/path/to/file','r'); while ( ($data = fgetcsv($handle) ) !== FALSE ) { //process the array in $data var_dump($data); } ini_set('auto_detect_line_endings',FALSE);

php read csv

Similar Code Examples