The min() function returns the lowest value in an array, or the lowest value of several specified values.
mixed min ( array $values )
mixed min ( mixed $value1 , mixed $value2 [, mixed $... ] )
If the first and only parameter is an array, min() returns the lowest value in that array. If at least two parameters are provided, min() returns the smallest of these values.
Parameter | Description |
---|---|
values | An array containing the values. |
value1 | Any comparable value. |
value2 | Any comparable value. |
... | Any comparable value. |
min() returns the parameter value considered "lowest" according to standard comparisons. If multiple values of different types evaluate as equal (e.g. 0 and 'abc') the first provided to the function will be returned.