How do I get the highest and lowest values โโof array elements?
2 answers
http://www.php.net/manual/en/function.min.php
echo min(2, 3, 1, 6, 7); // 1
http://www.php.net/manual/en/function.max.php
echo max(1, 3, 5, 6, 7); // 7
Hope it helps!
+12
source to share