public static function readCSV($csvFile)
    {
        ini_set('auto_detect_line_endings', true);
        $file_handle = fopen($csvFile, 'r');
        while (!feof($file_handle)) {
            $line_of_text[] = fgetcsv($file_handle, 1024);
        }
        fclose($file_handle);
        return $line_of_text;
    }
public static function readCSV($csvFile)
    {
        ini_set('auto_detect_line_endings', true);
        $file_handle = fopen($csvFile, 'r');
        while (!feof($file_handle)) {
            $line_of_text[] = fgetcsv($file_handle, 1024);
        }
        fclose($file_handle);
        return $line_of_text;
    }
public static function readCSV ( $ csvFile ) { ini_set ( 'auto_detect_line_endings' , true ) ; $ file_handle = fopen ( $ csvFile , 'r' ) ; while ( ! feof ( $ file_handle ) ) { $ line_of_text [ ] = fgetcsv ( $ file_handle , 1024 ) ; } fclose ( $ file_handle ) ; return $ line_of_text ; }
Reads a CSV file
@credit http://www.codedevelopr.com/articles/reading-csv-files-into-php-array/
@param $csvFile
@return array
Reads a CSV file