PHP code example of jsnlib / export
1. Go to this page and download the library: Download jsnlib/export library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jsnlib / export example snippets
$result = \Jsnlib\Export::csv(new \Jsnlib\Ao(
[
'TitleInfo' => ['編號', '姓名', '電話'],
'ContentList' =>
[
['1', '張先生', '0978-235-235'],
['4', '許小姐', '0978-233-111']
],
'return_map' => true,
]));