@?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
snpo123
Forum Commoner
Posts: 77
Joined: Sat Apr 17, 2004 6:31 pm

@?

Post 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.
Last edited by snpo123 on Thu Jul 01, 2004 11:03 am, edited 1 time in total.
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

@ supresses all errors and warnings PHP may spit out.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

User avatar
snpo123
Forum Commoner
Posts: 77
Joined: Sat Apr 17, 2004 6:31 pm

Post by snpo123 »

Thanks for the help, I guess thats all I needed to know! :)
Post Reply