mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-20 13:21:00 +00:00
2482203c3e
These are handled about 50-50 between code changes when reasonable, and annotations when not. No source code is changed.
12 lines
441 B
PHP
12 lines
441 B
PHP
<?php
|
|
|
|
use PhpOffice\PhpSpreadsheet\IOFactory;
|
|
|
|
require __DIR__ . '/../Header.php';
|
|
|
|
$inputFileName = __DIR__ . '/sampleData/example1.xls';
|
|
$helper->log('Loading file ' . /** @scrutinizer ignore-type */ pathinfo($inputFileName, PATHINFO_BASENAME) . ' using IOFactory to identify the format');
|
|
$spreadsheet = IOFactory::load($inputFileName);
|
|
$sheetData = $spreadsheet->getActiveSheet()->toArray(null, true, true, true);
|
|
var_dump($sheetData);
|