Comment on page
检查工作表是否存在
existSheet(string $sheetName): array
$config = ['path' => './tests'];
$fileObject = new \Vtiful\Kernel\Excel($config);
$fileObject->fileName('tutorial.xlsx')
// 添加工作表 twoSheet
->addSheet('twoSheet');
var_dump($fileObject->existSheet('twoSheet'));
var_dump($fileObject->existSheet('notFoundSheet'));
bool(true)
bool(false)
Last modified 2yr ago