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

        $pattern = self::getSizePattern($separator);

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

        $pattern = self::getSizePattern($separator);

        return (bool)preg_match($pattern, $value);
    }
public static function isSizeValue ( $ value , $ separator = ' x ' ) { /*
         * Not a string?
         * Nothing to do
         */ if ( ! is_string ( $ value ) ) { return false ; } $ pattern = self :: getSizePattern ( $ separator ) ; return ( bool ) preg_match ( $ pattern , $ value ) ; }
Returns information if given value is a size value

@param string $value     Value to verify
@param string $separator (optional) Separator used to split width and height. Default: " x ".
@return bool
Returns information if given value is a size value