| 
<?php
use alesinicio\HTMLTable;
 
 require "../HTMLTable.php";
 
 $arrHeaders = array(
 "First column", "Second column", "Third column", "Fourth column"
 );
 
 $arrData = array(
 array("this",     "is",     "first",    "row"),
 array("could",    "come",    "from",     "database")
 );
 
 $table = new HTMLTable();
 $table->createTableTag(true);
 $table->setData($arrData);
 $table->setHeaders($arrHeaders);
 $table->setTableClasses("myTableClass", "maybeAnotherClass");
 $table->setTableID("myTableID");
 echo $table->getHTML();
 |