bkkkd / multarray
A multidimensional array export/import CSV file tool library.
dev-master
2018-03-21 14:05 UTC
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is not auto-updated.
Last update: 2025-03-21 10:09:25 UTC
README
A multidimensional array export/import CSV file tool library.
demo
$data = array(
'_id'=>'123',
'name'=>array(
'first'=>'Tim',
'last'=>'Huang'
)
);
echo MultArray::toCsv($data); // print thee csv file content as below
$render = MultArray::fromCsv('.test.csv');// it is same to $data
csv file content
_id,name[first],name[last]
123,Tim,Huang
php array
array(
'_id'=>'123',
'name'=>array(
'first'=>'Tim',
'last'=>'Huang'
)
)