HTML_Table::setCaption()

HTML_Table::setCaption() – Set table caption

Synopsis

require_once 'HTML/Table.php';

void HTML_Table::setCaption ( string $caption , mixed $attributes = null )

Description

Sets the caption of a table. This does not refer to the <th>-tag. The <caption>-tag defines a headline for the whole table.

Parameter

  • string $caption - the caption string

  • mixed $attributes - Associative array or string of caption attributes

Note

This function can not be called statically.