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

Integrating Google reCAPTCHA v3 in HTML Form with PHP

  What is Google reCAPTCHA v3? Google reCAPTCHA is a free service that helps protect websites from spam and abuse. reCAPTCHA v3 is the lates...