src/Utilities/Regex.php
public static function isBinaryValue($value)
    {
        /*
         * Not a string?
         * Nothing to do
         */
        if (!is_string($value)) {
            return false;
        }

        $pattern = self::$patterns['binaryValue'];

        return (bool)preg_match($pattern, $value);
    }
public static function isBinaryValue($value)
    {
        /*
         * Not a string?
         * Nothing to do
         */
        if (!is_string($value)) {
            return false;
        }

        $pattern = self::$patterns['binaryValue'];

        return (bool)preg_match($pattern, $value);
    }
public static function isBinaryValue ( $ value ) { /*
         * Not a string?
         * Nothing to do
         */ if ( ! is_string ( $ value ) ) { return false ; } $ pattern = self :: $ patterns [ 'binaryValue' ] ; return ( bool ) preg_match ( $ pattern , $ value ) ; }
Returns information if given value is a binary value

@param string $value Value to verify
@return bool
Returns information if given value is a binary value