previousHTML_Table::addCol() (Previous) (Next) HTML_Table::altRowAttributes()next

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

HTML_Table::addRow()

HTML_Table::addRow() – 行を追加する

Synopsis

require_once 'HTML/Table.php';

int HTML_Table::addRow ( array $contents = = null , mixed $attributes = = null , string $type='TD' , boolean $inTR = = false , int $body=0 )

Description

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

Parameter

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

  • mixed $attributes - 連想配列あるいは文字列で指定する、テーブルの行の属性。 これは属性の配列とすることも可能で、その場合には、 ループ内でそれらの属性が繰り返されます。

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

  • boolean $inTR - FALSE を指定すると、属性を TD タグに対して設定します。 TRUE を指定すると、属性を TR タグに対して設定します。

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

Return value

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

Note

This function can not be called statically.

previousHTML_Table::addCol() (Previous) (Next) HTML_Table::altRowAttributes()next

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.