diff --git a/Documentation/Examples/Reader/exampleReader17.php b/Documentation/Examples/Reader/exampleReader17.php new file mode 100644 index 00000000..6c8d1bd2 --- /dev/null +++ b/Documentation/Examples/Reader/exampleReader17.php @@ -0,0 +1,52 @@ + + + + + +PHPExcel Reader Example #08 + + + + +

PHPExcel Reader Example #08

+

Simple File Reader Loading Several Named WorkSheets

+'; +$objReader = PHPExcel_IOFactory::createReader($inputFileType); + + +/** Read the list of Worksheet Names from the Workbook file **/ +echo 'Read the list of Worksheets in the WorkBook
'; +$worksheetNames = $objReader->listWorksheetNames($inputFileName); + +echo 'There are ',count($worksheetNames),' worksheet',((count($worksheetNames) == 1) ? '' : 's'),' in the workbook

'; +foreach($worksheetNames as $worksheetName) { + echo $worksheetName,'
'; +} + + +?> + + \ No newline at end of file