You could make the range and run in_array, but that probably wouldn't be great for performance. PHP would internally end up looping through the numbers you provided to create a brand new (potentially huge) array, and then loop through the array all over again to see if X is in there somewhere. That's a lot more work than necessary for a simple "is it within these numbers" check.
Sticking to the two conditions is probably the best way to go, especially since it'd be much more readable. You can also make a helper function if this is, for some reason, really getting to you.
function is_within_inclusive($x, $start, $end) {
return $x >= $start && $x <= $end;
}
But if you already have the range defined, anyway, for other reasons, in_array seems fine.