I want to get values from columns by column header. I manage to get any, except the first. Why is that? Gives an error message
Notice: Undefined index: ZIP
$file_name="http://www.omniva.ee/locations.csv"; $fp = fopen($file_name, 'r'); $head = fgetcsv($fp, 4096, ';', '"'); while($column = fgetcsv($fp, 4096, ';', '"')) { $column = array_combine($head, $column); echo $column['ZIP']; // не получаю echo $column['NAME']; // получаю }