public static function rangeNumber($value, $minNumber, $maxNumber): bool
    {
        if (!is_numeric($value)) {
            return false;
        }

        if ($value < $minNumber) {
            return false;
        }
        if ($value > $maxNumber) {
            return false;
        }

        return true;
    }
public static function rangeNumber($value, $minNumber, $maxNumber): bool
    {
        if (!is_numeric($value)) {
            return false;
        }

        if ($value < $minNumber) {
            return false;
        }
        if ($value > $maxNumber) {
            return false;
        }

        return true;
    }
public static function rangeNumber ( $ value , $ minNumber , $ maxNumber ) : bool { if ( ! is_numeric ( $ value ) ) { return false ; } if ( $ value < $ minNumber ) { return false ; } if ( $ value > $ maxNumber ) { return false ; } return true ; }
Checks if value is within a numeric range

@param mixed     $value     The value
@param int|float $minNumber The minimum number
@param int|float $maxNumber The maximum number

@return bool
Checks if value is within a numeric range