JHtmlSelect::options
Generates the option tags for an HTML select list (with no select tag surrounding the options).
Signature
public function options(array
$arr,
[mixed
$optKey = 'value',
[string
$optText = 'text',
[mixed
$selected = null,
[boolean
$translate = false]]]] )
Parameters
-
$arr
- An array of objects, arrays, or values.
-
$optKey
- If a string, this is the name of the object variable for
-
$optText
- The name of the object variable for the option text.
-
$selected
- The key that is selected (accepts an array or a string)
-
$translate
- Translate the option values.
Returns
- string
- HTML for the select list