<?php $lines = <<<EOF fund,name,investment,region,sector,status,description,acquisition_date,size,address_line_1,address_line_2,city,county,postcode,longitude,latitude,featured,external_link "Fund 1","Property Name","Investment Name","London","Office","Published","","","","","","London","","","","","","" EOF; $array = array_map('str_getcsv', explode(PHP_EOL, $lines)); array_walk($array, function(&$a) use ($array) { $a = array_combine($array[0], $a); }); array_shift($array); foreach ($array as $element) { echo $element['fund'], "\n"; }
You have javascript disabled. You will not be able to edit any code.