Find highest value with the max() function in PHP
Description
The following code shows how to find highest value with the max() function.
Example
/*from w w w . j a v a 2s. c om*/
<?php
echo(max(2,4,6,8,10) . "<br>");
echo(max(22,14,68,18,15) . "<br>");
echo(max(array(4,1,8,10)) . "<br>");
echo(max(array(44,11,11,12)));
?>
The code above generates the following result.