Badtable


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)

Example:

$this->badtable->set_caption('This is my table and this is what it shows...');

set_caption (string caption [, array attributes])

Example:

$attr = array('style' => 'font-weight:bold;');
		
$this->badtable->set_caption('This is my table and this is what it shows...', $attr);