checkbox() public static method
Generates a checkbox input.
public static string checkbox ( $name, $checked = false, $options = [] ) | ||
---|---|---|
$name | string |
The name attribute. |
$checked | boolean |
Whether the checkbox should be checked. |
$options | array |
The tag options in terms of name-value pairs. See booleanInput() for details about accepted attributes. |
return | string |
The generated checkbox tag |
Please login to continue.