HTML_Table::addCol()

HTML_Table::addCol() – 列を追加する

Synopsis

require_once 'HTML/Table.php';

int HTML_Table::addCol ( array $contents = = null , mixed $attributes = = null , string $type='TD' , int $body=0 )

Description

テーブルに列を追加し、その列の識別子を返します。

Parameter

  • array $contents - セルの内容として有効な値を含む、数値添字の配列でなければなりません。

  • mixed $attributes - 連想配列あるいは文字列で指定する、テーブルの行の属性。

  • string $type - セルの型。'th' あるいは 'td' のいずれか。

  • int $body - 使用する tbody グループの番号。

Return value

int - 列の識別子を返します。

Note

This function can not be called statically.