Thread: Curly brackets!
View Single Post
Old 05-06-2009, 12:00 PM   #3 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 646
Thanks: 64
allworknoplay is on a distinguished road
Default

You can try to do things short handed, so if you have a quick conditional, you don't have to use brackets like so:

if($a) {
echo "hello";
}

That's 2 brackets you have to worry about. But you can just do this:

if($a) echo "hello";
allworknoplay is offline  
Reply With Quote