src/SellerLabs/Nucleus/Support/Std.php
public static function within($min, $max, $value)
    {
        Arguments::define(
            Boa::either(Boa::integer(), Boa::float()),
            Boa::either(Boa::integer(), Boa::float()),
            Boa::either(Boa::integer(), Boa::float())
        )->check($min, $max, $value);

        if ($min > $max) {
            throw new LackOfCoffeeException(
                'Max value is less than the min value.'
            );
        }

        return ($min <= $value && $max >= $value);
    }
public static function within($min, $max, $value)
    {
        Arguments::define(
            Boa::either(Boa::integer(), Boa::float()),
            Boa::either(Boa::integer(), Boa::float()),
            Boa::either(Boa::integer(), Boa::float())
        )->check($min, $max, $value);

        if ($min > $max) {
            throw new LackOfCoffeeException(
                'Max value is less than the min value.'
            );
        }

        return ($min <= $value && $max >= $value);
    }
public static function within ( $ min , $ max , $ value ) { Arguments :: define ( Boa :: either ( Boa :: integer ( ) , Boa :: float ( ) ) , Boa :: either ( Boa :: integer ( ) , Boa :: float ( ) ) , Boa :: either ( Boa :: integer ( ) , Boa :: float ( ) ) ) -> check ( $ min , $ max , $ value ) ; if ( $ min > $ max ) { throw new LackOfCoffeeException ( 'Max value is less than the min value.' ) ; } return ( $ min <= $ value && $ max >= $ value ) ; }
Check if a value is between two other values.

@param int|float $min
@param int|float $max
@param int|float $value

@throws LackOfCoffeeException
@return bool
Check if a value is between two other values .