PhpSpreadsheet Reader Example #05
Simple File Reader using the "Read Data Only" Option
';
$reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
echo 'Turning Formatting off for Load
';
$reader->setReadDataOnly(true);
$spreadsheet = $reader->load($inputFileName);
echo '
';
$sheetData = $spreadsheet->getActiveSheet()->toArray(null, true, true, true);
var_dump($sheetData);
?>