min()
min - Find lowest value
Syntax
mixed min (
array $values,
mixed $value1,
mixed $value2,
mixed $value3...,
array $values,
mixed $value1,
mixed $value2,
mixed $value3...)
Arguments
- values - An array containing the values.
- value1
- value2
- value3...
- values - An array containing the values.
- value1
- value2
- value3...
Description
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.
Version
PHP 4, 5
Return value
min() returns the numerically lowest of the parameter values.