PHP code example of klauspeng / csv_export
1. Go to this page and download the library: Download klauspeng/csv_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/ */
klauspeng / csv_export example snippets
use klauspeng\csv_export;
w csv_export('导出测试' . '_' . date('YmdHis'));
// 表头
$colums = ['a列', 'b列'];
$csv->setDate($colums, 0);
// 数据
$date[] = [1,2];
$date[] = [3,4];
$csv->setDate($date);