PEAR Manual
Prev |  | Next

# HTML_Table::addCol

HTML_Table::addCol -- Add column

## Synopsis

    require_once "HTML/Table.php";

``int HTML_Table::addCol` ([array $contents = `NULL` [, mixed $attributes = `NULL` [, string $type='TD']]])`

## Description

Adds a table column and returns the column identifier

## Parameter

- `array $contents` - Must be an indexed array of valid cell contents.

- `mixed $attributes` - Associative array or string of table row attributes

- `string $type` - Cell type either `'th'` or `'td'`

## Return value

`int` - the identifier for the column

## Note

This function can not be called statically.

## See

HTML_Table::addRow()

Prev | Home | Next
HTML_Table::HTML_Table | Up | HTML_Table::addRow