May 6, 2015

Find maximum value from numbers using PHP.

$no = 5;
$no2 = 10;
$no3 = 6;
$maxVal = max($no,$no2,$no3);
echo $maxVal;

Result:
10

No comments:

Post a Comment