HTML_QuickForm_select::addOption()
HTML_QuickForm_select::addOption() -- Adds a new OPTION to the SELECT
概要
require_once 'HTML/QuickForm/select.php'; |
void HTML_QuickForm_select::addOption (string $text, string $value [, mixed $attributes = NULL])
パラメータ
- string
$text
Display text for the OPTION
- string
$value
Value for the OPTION
- mixed
$attributes
Either a typical HTML attribute string or
an associative array
例外・エラー
throws no exceptions thrown
注意
since 1.0
この関数は、スタティックにコールする
ことはできません。