PHP max() Function

The max() function is used to display the highest value of specified two numbers .

Demo :



X Number : Y Number :  
Highest Numbers is :

Example :

X Number : 10 , Y Number : 100

If you need to find highest numbers following code useful to you.


<?php
 $x_No = 10;
 $y_No = 100;
 $result = max($x_No,$y_No);
 echo $result;
?>

In the above code is used to display the highest value of specified two numbers .In the max() functions have used three parameters that name is mixed arg1,[mixed arg2],[mixed...].

Free Download Script :

If you need max() function demo code download from following link.

Download




Content