mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-10-05 03:17:33 +00:00
Improve web-rendering of Reader Examples by displaying the loaded worksheet grids
This commit is contained in:
@@ -7,5 +7,6 @@ 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);
|
||||
$helper->displayGrid($sheetData);
|
||||
|
||||
Reference in New Issue
Block a user