Find highest value with the max() function:
The max() function returns the highest value in an array, or the highest value of several specified values.
Parameter | Description |
---|---|
array_values | Required. Specifies an array containing the values |
value1,value2,... | Required. Specifies the values to compare (must be at least two values) |
Return Value: | The numerically highest value |
---|---|
Return Type: | Mixed |
PHP Version: | 4+ |