PhpSpreadsheet/samples/Basic/46_ReadHtml.php

20 lines
405 B
PHP
Raw Permalink Normal View History

<?php
// Turn off error reporting
error_reporting(0);
use PhpOffice\PhpSpreadsheet\IOFactory;
2017-10-01 08:48:59 +00:00
require __DIR__ . '/../Header.php';
2017-10-01 08:48:59 +00:00
$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__);