PHP: How can I determine if a variable has a value that is between two distinct constant values? June 4, 2023 by Tarik if (($value > 1 && $value < 10) || ($value > 20 && $value < 40))