protected function _checkedOptions($value, $selected, array $attrs)
    {
        $attrs['checked'] = false;
        if (is_array($selected)) {
            foreach ($selected as $val) {
                if ($value == $val) {
                    $attrs['checked'] = 'checked';
                    break;
                }
            }
        } else {
            if ($value == $selected) {
                $attrs['checked'] = 'checked';
            }
        }

        return $attrs;
    }
protected function _checkedOptions($value, $selected, array $attrs)
    {
        $attrs['checked'] = false;
        if (is_array($selected)) {
            foreach ($selected as $val) {
                if ($value == $val) {
                    $attrs['checked'] = 'checked';
                    break;
                }
            }
        } else {
            if ($value == $selected) {
                $attrs['checked'] = 'checked';
            }
        }

        return $attrs;
    }
protected function _checkedOptions ( $ value , $ selected , array $ attrs ) { $ attrs [ 'checked' ] = false ; if ( is_array ( $ selected ) ) { foreach ( $ selected as $ val ) { if ( $ value == $ val ) { $ attrs [ 'checked' ] = 'checked' ; break ; } } } else { if ( $ value == $ selected ) { $ attrs [ 'checked' ] = 'checked' ; } } return $ attrs ; }
Checked options.

@param string $value
@param string|array $selected
@param array $attrs
@return array
Checked options .