UK [mæks] US [mæks]
adv.Maximum value
php max() function syntax
Function:Find the maximum number from all parameters
Syntax:max(X,Y,Z) or max(array(X,Y,Z ))
Parameters:There is at least one parameter in the max function, it can be multiple parameters, or it can be an array.
Note:If there is only one parameter and it is an array, the maximum value in the array will be returned. If the first parameter is an integer, a string or a floating point number, at least two are required. Parameters, max will return the largest of these values, and the parameters can be unlimited values.
php max() function example
Output:
最大值是9
Output:
159