PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Matteo Lucarno   PHP HTML Table to Excel or Word   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: PHP HTML Table to Excel or Word
Convert a HTML table to Excel or Word formats
Author: By
Last change:
Date: 9 years ago
Size: 362 bytes
 

Contents

Class file image Download
<?php
require 'src/HTMLOffice/HTMLOffice.php'

class Example {

   
$sampleHTMLTable = '<table>
                            <tr><td>Cell1</td><td>Cell2</td></tr>
                            <tr><td colspan=2>Unified</td></tr>
                        </table>'
;

    public function
__construct(){
       
$officeExporter = new HTMLOffice();
       
$officeExporter->exportToExcel($sampleHTMLTable,'Export testing');
    }
}

?>