|
minFind lowest value Description
mixed min(mixed
$value , mixed ...$values )Alternative signature (not supported with named arguments): mixed min(array
$value_array )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.
Caution
Be careful when passing arguments of different types because min can produce unpredictable results. Parameters
Return Values
min returns the parameter value considered "lowest" according to standard
comparisons. If multiple values of different types evaluate as equal (e.g. Errors/ExceptionsIf an empty array is passed, min throws a ValueError. Changelog
Examples
Example #1 Example uses of min
See Also
|