Return to Snippet

Revision: 50494
at August 24, 2011 22:02 by iloveitaly


Initial Code
function read_csv_file($file) {
	$file = fopen($file, 'r');
	$csv = array();
	
	while (($line = fgetcsv($file)) !== FALSE) {
		$csv[] = $line;
	}
	
	fclose($file);
	return $csv;
}

Initial URL

                                

Initial Description

                                

Initial Title
PHP Read CSV to Array

Initial Tags
php, csv

Initial Language
PHP