05-06-2009, 12:23 PM
|
#5 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 646
Thanks: 64
|
Quote:
Originally Posted by Guezala
Would this work if i have lots of if elses inside a main if else?
|
Yeah..you can do this....
if($var) echo "Hello";
elseif ($var == "something") echo "Hello 2";
else echo "Hello 3";
Just don't get too carried away I guess....
If you really have a lot of conditionals, it might be faster to use switch function.....
|
|
|
|