View Single Post
05-06-2009, 01:21 PM
Join Date: Feb 2009
Location: New York
Originally Posted by
While it may seem like wisdom at the time to this, it is bad practice and can lead to bugs more easily.
Always indent your code, without indents code is half impossible to read. That should take care of half your problems right there.
Right, I can see that...is it really bad practice though to do it for a quick line like in my example, as long as it doesn't get too nested like Salathe mentioned...??
I just feel, if I need to check something, and echo it, I'd rather save the trouble of using brackets, but if I have to use multiple else/if statements, then I would use brackets...
Here's an example if I want to do a quick exit...
$a = 10;
if($a == 10) exit;
View Public Profile
Send a private message to allworknoplay
Find More Posts by allworknoplay