函数原型

  1. existSheet(string $sheetName): array

示例

  1. $config = ['path' => './tests'];
  2. $fileObject = new \Vtiful\Kernel\Excel($config);
  3. $fileObject->fileName('tutorial.xlsx')
  4. // 添加工作表 twoSheet
  5. ->addSheet('twoSheet');
  6. var_dump($fileObject->existSheet('twoSheet'));
  7. var_dump($fileObject->existSheet('notFoundSheet'));

示例输出

  1. bool(true)
  2. bool(false)