English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Themax()
The function returns the maximum value of the array.
max(arr_values); or max(val1,val2,...);
arr_values-is an array with values.
val1,val2-the values to be compared.
Themax()
The function returns the maximum value of the array.
<?php echo (max(70, 89, 12, 34, 23, 66, 34)); ?>
Output Result
89
Let's look at another example-
<?php echo (max(array(70, 89, 12, 34, 23, 66, 34); ?>
Output Result
89