Find the greatest number among two using php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Find the greatest number among two using php

31st Mar 2022, 2:18 AM
Ganesh Neupane
Ganesh Neupane - avatar
2 Answers
+ 3
Example print (30>40) ? "30" : "40";
31st Mar 2022, 4:10 AM
Paul K Sadler
Paul K Sadler - avatar
+ 3
Built-in max( ) function can also be used ...
31st Mar 2022, 4:49 AM
Ipang