I have a CSV file that looks like:
Header1,Header2,Header3
value1,value2,value3
value11,value12,value13
value21,value22,value23
etc...
When I use this code to parse through it:
$csvData = file_get_contents($file_url);
$lines = explode(" ", $csvData);
$array = array();
foreach ($lines as $line) {
$array[] = str_getcsv($line);
}
dpm($array);
the first value of a line always ends up being part of the end of the last header:
EDIT: There must have been an issue with cache as this is working fine.