protected static function createCheckBoxAndRadioButtonLabel($label, $input, $htmlOptions)
    {
        list ($hidden, $input) = self::normalizeCheckBoxAndRadio($input);
        return $hidden . ($label !== false
            ? self::tag('label', $htmlOptions, $input . ' ' . $label)
            : $input);
    }
protected static function createCheckBoxAndRadioButtonLabel($label, $input, $htmlOptions)
    {
        list ($hidden, $input) = self::normalizeCheckBoxAndRadio($input);
        return $hidden . ($label !== false
            ? self::tag('label', $htmlOptions, $input . ' ' . $label)
            : $input);
    }
protected static function createCheckBoxAndRadioButtonLabel ( $ label , $ input , $ htmlOptions ) { list ( $ hidden , $ input ) = self :: normalizeCheckBoxAndRadio ( $ input ) ; return $ hidden . ( $ label !== false ? self :: tag ( 'label' , $ htmlOptions , $ input . ' ' . $ label ) : $ input ) ; }
Generates a label for a checkbox or radio input by wrapping the input.
@param string $label the label text.
@param string $input the input.
@param array $htmlOptions additional HTML attributes.
@return string the generated label.
Generates a label for a checkbox or radio input by wrapping the input .