mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-19 02:20:36 +00:00
2a0a53cd6a
Because they tend to clutter our code a lot and unfortunately, there are lots of false positives. Instead, it would probably be better to deal with false positives out of band, via the Scrutinizer web UI.
13 lines
422 B
PHP
13 lines
422 B
PHP
<?php
|
|
|
|
use PhpOffice\PhpSpreadsheet\IOFactory;
|
|
|
|
require __DIR__ . '/../Header.php';
|
|
|
|
$inputFileName = __DIR__ . '/sampleData/example1.xls';
|
|
$helper->log('Loading file ' . pathinfo($inputFileName, PATHINFO_BASENAME) . ' using IOFactory to identify the format');
|
|
$spreadsheet = IOFactory::load($inputFileName);
|
|
|
|
$sheetData = $spreadsheet->getActiveSheet()->toArray(null, true, true, true);
|
|
$helper->displayGrid($sheetData);
|