开发者

what is the @'s purpose in PHP [duplicate]

This question already has answers here: Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜