phpif-statementintervalsbetween

How can I determine if a variable has a value that is between two distinct constant values?


How can I determine using PHP code that, for example, I have a variable that has a value


Solution

  • if (($value > 1 && $value < 10) || ($value > 20 && $value < 40))