HTML_Table::setColType() – Set column type


require_once 'HTML/Table.php';

void HTML_Table::setColType ( int $col , string $type , int $body = null )


Sets the type of a column to 'th' or 'td'


  • int $col - Column index

  • string $type - th or td

  • int $body - The number of the tbody group that should be used. NULL indicates that all groups should be used.


This function can not be called statically.

Set a colgroup (Previous) Set content of header cell (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

Note by: cweiske
- This method has to be called after all the rows have been added to the table
- Column index begins with 0