How to use max in PHP
This article describe about max() function in PHP.
max() function
This function return the maximum number from define two number.
Syntax
Parameter |
Description |
x |
Specified a number. |
y |
Specified a number. |
Example
<html>
<?php
echo(max(9,7) . "<br />");
echo(max(-6,5) . "<br />");
echo(max(-3,-5) . "<br />");
echo(max(9.5,7.300))
?>
</html> |
Output

You may also want to read these related articles Click here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here