From 1911d4a48f08454364273402f6b28d1007fcd69e Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Wed, 29 Dec 2010 00:57:01 +0000 Subject: [PATCH] Updated user documentation with information about and example of retrieving the list of worksheet names using the listWorksheetNames() method git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@66096 2327b42d-5241-43d6-9e2a-de5ac946f064 --- .../Examples/Reader/exampleReader17.php | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/Examples/Reader/exampleReader17.php diff --git a/Documentation/Examples/Reader/exampleReader17.php b/Documentation/Examples/Reader/exampleReader17.php new file mode 100644 index 0000000..6c8d1bd --- /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