minFind lowest value
&reftitle.description;
mixedminarrayvaluesmixedminmixedvalue1mixedvalue2mixed...
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.
Values of different types will be compared using the
standard comparison rules. For instance, a non-numeric string will be
compared to an integer as though it were 0, but multiple
string values will be compared alphanumerically. The actual value returned will be of the
original type with no conversion applied.
&reftitle.parameters;
values
An array containing the values.
value1
Any comparable
value.
value2
Any comparable
value.
...
Any comparable
value.
&reftitle.returnvalues;
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.
If an empty array is passed, then &false; will be returned and an
E_WARNING error will be emitted.
&reftitle.examples;
Example uses of min
]]>
&reftitle.seealso;
maxcount