PHP » GoLang |
login |
register |
about
|
min(PHP 4, PHP 5, PHP 7) min — Find lowest value DescriptionIf 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 with mixed types values because min() can produce unpredictable results. Parameters
Return Valuesmin() 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.
If an empty array is passed, then Examples
Example #1 Example uses of min()
<?php |
more
Recently updated
more
Most requested
more
Last requests
|