<分区>
@#variable
在 php 中是什么意思?
$fix=@#parts;
标签 php
<分区>
@#variable
在 php 中是什么意思?
$fix=@#parts;
最佳答案
@用于抑制这行代码可能出现的任何错误
http://php.net/manual/en/language.operators.errorcontrol.php
When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.
我根本不推荐使用它,因为这可能导致无法注意到一些重要的错误/警告,并使调试变得困惑。在生产环境中,使用 error_reporting 设置可以防止在开发服务器上出现任何错误或警告,我建议打开任何错误报告
关于php - @#variable 在 php 中的含义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17857959/