Gets the active option's label given an array of JHtml options
public static getOptionName ( array $data, mixed $selected = null, string $optKey = 'value', string $optText = 'text', boolean $selectFirst = true ) : mixed | ||
$data | array | The JHtml options to parse |
$selected | mixed | The currently selected value |
$optKey | string | Key name |
$optText | string | Value name |
$selectFirst | boolean | Should I automatically select the first option? |
return | mixed | The label of the currently selected option |