Generates a set of radio HTML fields
public static getRadioFields ( string $html_field_name, array $choices, string $checked_choice = '', boolean $line_break = true, boolean $escape_label = true, string $class = '', string $id_prefix = '' ) : string | ||
$html_field_name | string | the radio HTML field |
$choices | array | the choices values and labels |
$checked_choice | string | the choice to check by default |
$line_break | boolean | whether to add HTML line break after a choice |
$escape_label | boolean | whether to use htmlspecialchars() on label |
$class | string | enclose each choice with a div of this class |
$id_prefix | string | prefix for the id attribute, name will be used if this is not supplied |
return | string | set of html radio fiels |