PHP Math Function : min()

The min() function returns the lowest value in an array, or the lowest value of several specified values. The syntax is :
 min(array);
Or
 min(value1, value2, value3 ....);
Where array is name of array, and value1, 2... means numerical values.

Example :
<?php

  $arr = array(10, 50, 30, 100, 90, 99);
  echo min($arr) . "<br/>";
  echo min(30, 90, 78, 56, 5, 75) . "<br/>";

?>
Output :

10
5


Next Topic :