PEAR Manual
Prev |  | Next

# $element->setOptions()

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

## Synopsis

``$element->setOptions` (mixed $array, boolean $noValue = `FALSE`)`

## Description

Used with HTML Selects, to fill in the options available

## Parameter

- `$array` the options to appear.

- `$noValue` dont use the keys from the array sent as the value= part of the option tag.

## Throws

throws no exceptions thrown

## Note

This function can not be called statically.

Prev | Home | Next
$element->setValue() | Up | $element->removeAttributes()