<?php use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; $html = '<table> <thead> <tr> <th width="10">ID</th> <th width="20">Name</th> <th width="30">Value</th> </tr> </thead> <tbody> <tr> <td rowspan="2">1</td> <td rowspan="2">Test</td> <td rowspan="2">123</td> </tr> </tbody> </table>'; $reader = new \PhpOffice\PhpSpreadsheet\Reader\Html(); $spreadSheet = $reader->loadFromString($html); $writer = IOFactory::createWriter($spreadSheet, 'Xlsx');
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`