max
Find highest value
&reftitle.description;
mixedmax
arrayvalues
mixedmax
mixedvalue1
mixedvalue2
mixedvalue3...
If the first and only parameter is an array, max
returns the highest value in that array. If at least two parameters are
provided, max returns the biggest of these values.
PHP will evaluate a non-numeric string as
0 if compared to integer, but still return the string if it's seen as the
numerically highest value. If multiple arguments evaluate to
0, max will return a numeric
0 if given, else the alphabetical highest string
value will be returned.
&reftitle.parameters;
values
An array containing the values.
&reftitle.returnvalues;
max returns the numerically highest of the
parameter values.
&reftitle.examples;
Example uses of max
]]>
&reftitle.seealso;
min
count