what is the @'s purpose in PHP [duplicate]
Possible Duplicate:
What is the use of @ symbol in php?
I been working with PHP right now but a question pops in my mind w开发者_高级运维hat the @ sign means? I saw it always before method or functions calls. and I try to remove them there is no changes. Can anyone explain me what is the purpose of this @ sign??
@imagecreatefromjpeg($file);
Simply put, @
allows you to suppress any errors that arise from the call to a function.
It suppresses error messages - see http://us3.php.net/manual/en/language.operators.errorcontrol.php in the PHP manual.
I believe it suppresses error reporting.
精彩评论