PEAR Manual
Prev |  | Next

# 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.

Prev | Home | Next
HTML_Table::setAutoFill | Up | HTML_Table::setCellAttributes