radioList() public static method
Generates a list of radio buttons. A radio button list is like a checkbox list, except that it only allows single selection.
public static string radioList ( $name, $selection = null, $items = [], $options = [] )$name string
The name attribute of each radio button. $selection
string|array|null
The selected value(s). String for single or array for multiple selection(s). $items array
The data item used to generate the radio buttons. The array keys are