listBox() public static method
Generates a list box.
public static string listBox ( $name, $selection = null, $items = [], $options = [] )$name string
The input name $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 values are arrays too). For each sub-arr