I have a CSV file with headings in both the columns and rows that i need as an associative array and the examples i have tried on SO haven\'t worked for me.
The closest
Try this,
foreach ($all_rows as $key => $value) { echo $value['food'] . "\n"; echo $value['In_Stock'] . "\n" }