HTML_QuickForm_select::loadArray()

HTML_QuickForm_select::loadArray() – Charge les options depuis un tableau associatif

Synopsis

require_once 'HTML/QuickForm/select.php';

mixed HTML_QuickForm_select::loadArray ( array $arr , mixed $values = = null )

Description

Le tableau doit avoir la forme 'valeur de l'option' => 'texte de l'option'.

Parameter

array $arr

Tableau associatif d'options

mixed $values

(optionnel) Tableau ou chaîne séparée par une virgule de valeurs

Return value

Retourne TRUE en cas de succès.

Throws

Lance une exception PEAR_Error si une erreur survient.

See

Voir load(), addOption().

Note

Disponible depuis la version 1.0.

This function can not be called statically.