Remove obsolete $obj prefix in cod sample

This commit is contained in:
Adrien Crivelli
2016-12-03 22:32:54 +09:00
parent 90da50f3c7
commit 17d1976526
24 changed files with 389 additions and 389 deletions
+2 -2
View File
@@ -33,11 +33,11 @@ $inputFileType = 'Xls';
$inputFileName = './sampleData/example1.xls';
echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'<br />';
$objReader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
$reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
/* Read the list of Worksheet Names from the Workbook file **/
echo 'Read the list of Worksheets in the WorkBook<br />';
$worksheetNames = $objReader->listWorksheetNames($inputFileName);
$worksheetNames = $reader->listWorksheetNames($inputFileName);
echo 'There are ',count($worksheetNames),' worksheet',((count($worksheetNames) == 1) ? '' : 's'),' in the workbook<br /><br />';
foreach ($worksheetNames as $worksheetName) {