HTML_QuickForm_select::setSelected()

HTML_QuickForm_select::setSelected()

HTML_QuickForm_select::setSelected() -- Sets the default values of the select box

Synopsis

require_once 'HTML/QuickForm/select.php';

void HTML_QuickForm_select::setSelected (mixed $values)

Description

This method is an alias for setValue(). For multiple selects you can pass either an array or a comma delimited string of values.

Parameter

mixed $values

Array or comma delimited string of selected values

Throws

throws no exceptions thrown

See

see getSelected().

Note

since 1.0

This function can not be called statically.