I have a CSV with the first row containing the field names. Example data is...
\"Make\",\"Model\",\"Note\" \"Chevy\",\"1500\",\"loaded\" \"Chevy\",\"2500\",
$all_rows = array(); $header = fgetcsv($file); while ($row = fgetcsv($file)) { $all_rows[] = array_combine($header, $row); }
print_r($all_rows);