Highest of four numbers

Finding the largest value

max() accepts multiple values or an array and returns the largest one. It is clearer than writing several nested comparisons for this exercise.

Four Numbers are : 68,12,135,22
Highest Number is : 135
\68=68; \12=12;\135=135;\22=22;
echo \"Four Numbers are : $v1,$v2,$v3,$v4 <br>\";
echo \" Highest Number is : \".max($v1,$v2,$v3,$v4);

All Basic Codes


Subscribe to our YouTube Channel here



plus2net.com











PHP video Tutorials
✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer