The PHP max() function returns the highest value in an array, or the highest value of several specified values.

				
					<?php
echo(max(2,4,6,8,10);
?>
				
			

Syntax

				
					max(array_values)
// or
max(value1, value2, ...)