How can I find the lowest price (number) and highest price (number) in an Unordered PHP array?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1539580/how-to-get-the-highest-and-lowest-value-items-of-an-array">How to get the highest and lowest value items of an array?</a>  </p>
</blockquote>



<p>I have an array in PHP which output like this:</p>

<pre><code>Array ( [0] =&gt; 180.99 [1] =&gt; 140 [2] =&gt; 200.45 )
</code></pre>

<p>The numbers can be decimals because they are prices.</p>

<p>For example, I want to show that the product has price ranging from 140 to 200 . How can I use that unordered array to find the min, max price within it?</p>

<p>Thank you</p>
