"Fossies" - the Fresh Open Source Software Archive

Member "ILIAS-5.4.9/libs/composer/vendor/phpoffice/phpspreadsheet/samples/Reader/02_Simple_file_reader_using_a_specified_reader.php" (24 Jan 2020, 411 Bytes) of package /linux/www/ILIAS-5.4.9.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "02_Simple_file_reader_using_a_specified_reader.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 
    3 use PhpOffice\PhpSpreadsheet\Reader\Xls;
    4 
    5 require __DIR__ . '/../Header.php';
    6 $inputFileName = __DIR__ . '/sampleData/example1.xls';
    7 
    8 $helper->log('Loading file ' . pathinfo($inputFileName, PATHINFO_BASENAME) . ' using ' . Xls::class);
    9 $reader = new Xls();
   10 $spreadsheet = $reader->load($inputFileName);
   11 
   12 $sheetData = $spreadsheet->getActiveSheet()->toArray(null, true, true, true);
   13 var_dump($sheetData);