First next and first last based on number
<p>I have some array in PHP like this</p>

<pre><code>$numbers = array('1','3','4','5','6','7','8','9','0','11','123','89');
</code></pre>

<p>And current number that can be random like this </p>

<pre><code>$currentNumber = 32;
</code></pre>

<p>What I need is to output only first number from array that is lower than <code>$currentNumber</code> and first higher number from array that is bigger than <code>$currentNumber</code></p>

<p>I know i can output all lower and all bigger, put only i need one :(</p>

<pre><code>foreach ($numbers as $number){
     if ($number &gt; $currentNumber){
          echo $number .' Number is bigger';
     }
     else{
          echo $number .' Number is lower';
     } 
}
</code></pre>