checkboxList() public static method
Generates a list of checkboxes. A checkbox list allows multiple selection, like listBox(). As a result, the corresponding submitted value is an array.
public static string checkboxList ( $name, $selection = null, $items = [], $options = [] )$name string
The name attribute of each checkbox. $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 check