import csv file php code example
Example: php read csv
<?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);