You could do it using in_array()
combined with range()
if (in_array($value, range($min, $max))) {
// Value is in range
}
Note As has been pointed out in the comments however, this is not exactly a great solution if you are focussed on performance. Generating an array (escpecially with larger ranges) will slow down the execution.