what is the @'s purpose in PHP

Possible Duplicate:
What is the use of @ symbol in php?

I been working with PHP right now but a question pops in my mind what 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);

简而言之, @允许您抑制由于调用函数而产生的任何错误。


它可以抑制错误信息 - 请参阅PHP手册中的http://us3.php.net/manual/en/language.operators.errorcontrol.php。


我相信它会抑制错误报告。

链接地址: http://www.djcxy.com/p/57712.html

上一篇: 为什么函数在php中以@开头? 像@unpack(xxx)?

下一篇: @在PHP中的目的是什么?