Possible Duplicate:
What is the use of the @ symbol in PHP?
Reference — What does this symbol mean in PHP?
what does using <?php echo @$fnameerror; ?>
mean. why use @ before variable in php
Possible Duplicate:
What is the use of the @ symbol in PHP?
Reference — What does this symbol mean in PHP?
what does using <?php echo @$fnameerror; ?>
mean. why use @ before variable in php
@ is pure evil. It's not a good idea to use. You can find an explanation about it here.
It can cause massive debugging headaches because it will even suppress critical errors.
The only reason I can think of to use the error suppression operator before a variable would be to suppress E_NOTICE
errors if the variable is undefined.
As others have mentioned, this is a bad idea. It's much better to actually deal with errors than ignore them.