public static function wraps_value($char, $value)
    {
        return substr((string) $value,  0, 1) == $char
            && substr((string) $value, -1, 1) == $char;
    }
public static function wraps_value($char, $value)
    {
        return substr((string) $value,  0, 1) == $char
            && substr((string) $value, -1, 1) == $char;
    }
public static function wraps_value ( $ char , $ value ) { return substr ( ( string ) $ value , 0 , 1 ) == $ char && substr ( ( string ) $ value , - 1 , 1 ) == $ char ; }
Check if the given character wraps the value.

@param $char
@param $value

@return bool
Check if the given character wraps the value .