title: PHP search array for a value between two numbers
body: <p>What's the best way of searching an array for a number within a range? e.g. between 1000 and 1500.</p>
  
  <pre><code>&lt;?php
  $numbers = array(1105,2140,3170);
  
  $needle = **value between 1000 and 1500**;
  
  if (in_array($needle, $numbers)) {
    echo "Match found";
  } else {
    echo "Match not found";
  }
  ?&gt;
  </code></pre>
  
  <p>In this case, this would return 'Match found' as 1105 is between 1000 and 1500.</p>
  
  <p>Can I set a range for the <code>$needle</code> variable?</p>