$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
// 写入测试数据
$filePath = $excel->fileName('tutorial.xlsx')
->header(['', 'Cost'])
->data([
[],
['viest', '']
])
->output();
// 读取全量数据, 并忽略第一行
$data = $excel->openFile('tutorial.xlsx')
->openSheet('Sheet1')
->setSkipRows(1)
->getSheetData();
// 读取全量数据, 并忽略第一行 和 第二行
$data = $excel->openFile('tutorial.xlsx')
->openSheet('Sheet1')
->setSkipRows(2)
->getSheetData();