Generates a radio button input.
public static radio ( string $name, boolean $checked = false, array $options = [] ) : string | ||
$name | string | the name attribute. |
$checked | boolean | whether the radio button 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 radio button tag |