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

        $pattern = self::getMoneyPattern();

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

        $pattern = self::getMoneyPattern();

        return (bool)preg_match($pattern, $value);
    }
public static function isValidMoneyValue ( $ value ) { /*
         * Not a scalar value?
         * Nothing to do
         */ if ( ! is_scalar ( $ value ) ) { return false ; } $ pattern = self :: getMoneyPattern ( ) ; return ( bool ) preg_match ( $ pattern , $ value ) ; }
Returns information if given value is valid money-related value

@param mixed $value Value to verify
@return bool
Returns information if given value is valid money - related value