Set Caption
The set_caption() method is used to define the table caption. Captions appear at the top of a table after the <table> tag. Tables can only have one caption.
set_caption (string caption)
- caption: defines the caption string | required
Example:
$this->badtable->set_caption('This is my table and this is what it shows...');
set_caption (string caption [, array attributes])
- caption: defines the caption string | required
- attributes: array of html attributes for the caption tag | optional
Example:
$attr = array('style' => 'font-weight:bold;');
$this->badtable->set_caption('This is my table and this is what it shows...', $attr);