<?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->setData($arrData);
$table->setHeaders($arrHeaders);
$table->hideColumn(1);
echo $table->getHTML();
|