设置全局读取类型
函数原型
setType(array $type)类型数组说明
[
2 => \Vtiful\Kernel\Excel::TYPE_TIMESTAMP,
]测试数据准备
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$filePath = $excel->fileName('tutorial.xlsx')
->header(['Name', 'Age', 'Date'])
->data([
['Viest', 24]
])
->insertDate(1, 2, 1568877706)
->output();示例
示例输出
Last updated