$data = array( array("Name","Age","Gender"), array("John", "35", "Male"), array("Jane", "27", "Female"), array("Bob", "42", "Male") ); echo ""; $table = new Table($data); $table->setHeaderRow(); $table->setRowClass("row-class"); $table->setColWidth(array(100,50,50)); echo $table->getTable(); echo "