$element->setOptions()

$element->setOptions() -- Utility function equivilant to HTML_Select - loadArray **

Synopsis

$element->setOptions (mixed $array, HTML_Element $from)

Description

but using key=>value maps <option value="key">Value</option> Key=key (eg. both the same) maps to <option>key</option> and label = array(key=>value) maps to <optgroup label="label"> <option value="key">value</option></optgroup>

.

Parameter

Throws

throws no exceptions thrown

Note

This function can not be called statically.