View Single Post
05-06-2009, 12:23 PM
Join Date: Feb 2009
Location: New York
Originally Posted by
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.....
View Public Profile
Send a private message to allworknoplay
Find More Posts by allworknoplay