View Single Post
Old 03-19-2009, 07:25 PM   #6 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by nefus View Post
I ran into something today that looks a tiny bit different.

Any real difference between

Code:
if($result){
    //do something with the result
}
and this

Code:
if(@$result){
    //do something with the result
}
Why use the @ symbol?

The @ symbol suppresses warning messages.
allworknoplay is offline  
Reply With Quote
The Following User Says Thank You to allworknoplay For This Useful Post:
nefus (03-19-2009)