using @ symbol

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
saltzmanjoelh
Forum Newbie
Posts: 2
Joined: Fri Apr 03, 2009 4:50 pm

using @ symbol

Post by saltzmanjoelh »

I have seen a few people use @mysql_query()

what is the point of the @ symbol?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: using @ symbol

Post by pickle »

It's for error suppression.

Do a Google search for "PHP @ symbol" - you'll get all the info you need.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
miyur
Forum Newbie
Posts: 15
Joined: Sat Jan 10, 2009 9:06 am

Re: using @ symbol

Post by miyur »

you can suppress the code generated errors with @symbol but it's recommended not to use it as error suppression with @ is very low.instead try correcting you code. you can use @ as the last option. :)
miyur
Forum Newbie
Posts: 15
Joined: Sat Jan 10, 2009 9:06 am

Re: using @ symbol

Post by miyur »

any more comments are welcome ...
Post Reply