renderSelectOptions() public static method
Renders the option tags that can be used by dropDownList() and listBox().
public static string renderSelectOptions ( $selection, $items, &$tagOptions = [] )$selection
string|array|null
The selected value(s). String for single or array for multiple selection(s). $items array
The option data items. The array keys are option values, and the array values are the corresponding option labels. The array can also be nested (i.e. some array value