Improve web-rendering of Reader Examples by displaying the loaded worksheet grids

This commit is contained in:
MarkBaker
2023-04-13 10:07:29 +02:00
parent 86d2505925
commit d3a1b43822
15 changed files with 52 additions and 33 deletions
@@ -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);