PEAR Manual
Prev |  | Next

# Console_Table::addCol()

Console_Table::addCol() -- Adds a column to the table

## Synopsis

    require_once 'Console/Table.php';

``void Console_Table::addCol` (array $col_data [, integer $col_id [, integer $row_id]])`

## Description

Adds a column to the table

## Parameter

array `$col_data`

  The data of the column. Can be numeric or associative array

integer `$col_id`

  The column index to populate

integer `$row_id`

  If starting row is not zero, specify it here

## Throws

throws no exceptions thrown

## Note

This function can not be called statically.

Prev | Home | Next
constructor Console_Table::Console_Table() | Up | Console_Table::addData()