title: Find number which is greater than or equal to N in an array
body: <p>If I have a PHP array:</p>
  
  <pre><code>$array
  </code></pre>
  
  <p>With values:</p>
  
  <pre><code>45,41,40,39,37,31
  </code></pre>
  
  <p>And I have a variable:</p>
  
  <pre><code>$number = 38;
  </code></pre>
  
  <p>How can I return the value?:</p>
  
  <pre><code>39
  </code></pre>
  
  <p>Because that is the closest value to 38 (counting up) in the array?</p>
  
  <p>Regards,</p>
  
  <p>taylor</p>