@ character before a function call

前端 未结 5 2033
迷失自我
迷失自我 2020-12-13 23:07

What is the difference between these two function calls in PHP?

init_get($somevariable);

@init_get($somevariable);
5条回答
  •  悲&欢浪女
    2020-12-13 23:16

    http://www.faqts.com/knowledge_base/view.phtml/aid/18068/fid/38

    All PHP expressions can be called with the "@" prefix, which turns off error reporting for that particular expression.

提交回复
热议问题