Page 1 of 1

@?

Posted: Thu Jul 01, 2004 11:01 am
by snpo123
While reviewing other's php scripts, I notice that sometimes they will include "@" preceeding a function
such as mysql_query(), and many other functions (not all mysql related). When I tried using
this on mysql functions, I found the function executes in the same way whether or not I use "@".
Can anybody here tell me what exactly the @ does in php and why I should use it?
I would use google to find such an answer as this however I can guess that a search for this information will prove futile. :wink:

Thanks, all help is appreciated.

Posted: Thu Jul 01, 2004 11:02 am
by evilmonkey
@ supresses all errors and warnings PHP may spit out.

Posted: Thu Jul 01, 2004 11:02 am
by feyd

Posted: Thu Jul 01, 2004 11:04 am
by snpo123
Thanks for the help, I guess thats all I needed to know! :)