Php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Php

Anybody is here who can give me a suitable example of Nested if else

19th Aug 2017, 4:03 AM
monu gurung
monu gurung - avatar
1 Answer
0
Or as an alternative a switch() statement works much better than having a ton of nested if() statements. As well as keeps your code much more readable.
4th Sep 2017, 2:11 PM
JJ Barnett
JJ Barnett - avatar