title: PHP: How can I determine if a variable has a value that is between two distinct constant values?
body: <p>How can I determine using PHP code that, for example, I have a variable that has a value </p>
  
  <ul>
  <li>between 1 and 10, or</li>
  <li>between 20 and 40?</li>
  </ul>