title: Find value between array values
body: <p>I have a large array and would like to find between which array values the search value would appear.</p>
  
  <p>A simplified version of this array is as follows:</p>
  
  <pre><code>[0] =&gt; Array
      (
          [min] =&gt; 0
          [max] =&gt; 4.999
          [val] =&gt; low
      )
  
  [1] =&gt; Array
      (
          [min] =&gt; 5
          [max] =&gt; 9.999
          [val] =&gt; med
      )
  
  [2] =&gt; Array
      (
          [min] =&gt; 10
          [max] =&gt; 14.999
          [val] =&gt; high
      )
  </code></pre>
  
  <p>So if I was to search for 6.2 the returned result would be the array value 'med'</p>
  
  <p>Is there a built in function that can easily walk over the array to make this calculation or would I need to set up a foreach loop</p>
  
  <p>Thanks in advance</p>