Generates an HTML object.
public radio ( string $name, array $options = [] ) : string | ||
$name | string | The name of the field |
$options | array | All options to be used when generating the radio `` element: - `'checked'` _boolean_: Whether or not the field should be selected by default. - `'value'` _mixed_: if specified, it will be used as the 'value' html attribute. Defaults to `1` - Any other options specified are rendered as HTML attributes of the element. |
return | string | Returns a `` tag with the given name and attributes |