PHPExcel Reader Example #18
Reading list of WorkSheets without loading entire file
';
$objReader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
$worksheetNames = $objReader->listWorksheetNames($inputFileName);
echo 'Worksheet Names
';
echo '';
foreach ($worksheetNames as $worksheetName) {
echo '- ', $worksheetName, '
';
}
echo '
';
?>