Answers for "php array to csv code"

PHP
1

php read csv to array

$lines =file('CSV Address.csv');

foreach($lines as $data)
{
list($name[],$address[],$status[])
= explode(',',$data);
}
Posted by: Guest on October-30-2020
0

csv to array php

$csv = array_map('str_getcsv', file('data.csv'));
Posted by: Guest on April-05-2021

Browse Popular Code Answers by Language