php put array into csv code example
Example 1: php read csv to array
$lines =file('CSV Address.csv');
foreach($lines as $data)
{
list($name[],$address[],$status[])
= explode(',',$data);
}
Example 2: csv to array php
$csv = array_map('str_getcsv', file('data.csv'));