# visualizer/3.5.0/vendor/phpoffice/phpspreadsheet/samples/Basic/46_ReadHtml.php

Visualizer – Tables &amp; Charts Manager with Built-in AI Generator, version 3.5.0. 20 lines.

- Page: https://pluginprobe.com/plugins/visualizer/3.5.0/code/vendor/phpoffice/phpspreadsheet/samples/Basic/46_ReadHtml.php
- Raw: https://pluginprobe.com/plugins/visualizer/3.5.0/raw/vendor/phpoffice/phpspreadsheet/samples/Basic/46_ReadHtml.php
- Modified: 2019-02-24T07:50:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/visualizer/3.5.0/code/vendor/phpoffice/phpspreadsheet/samples/Basic/46_ReadHtml.php#L10-L20`.

```php
<?php

// Turn off error reporting
error_reporting(0);

use PhpOffice\PhpSpreadsheet\IOFactory;

require __DIR__ . '/../Header.php';

$html = __DIR__ . '/../templates/46readHtml.html';
$callStartTime = microtime(true);

$objReader = IOFactory::createReader('Html');
$objPHPExcel = $objReader->load($html);

$helper->logRead('Html', $html, $callStartTime);

// Save
$helper->write($objPHPExcel, __FILE__);

```
