我已经看到了使用一个代码示例@之前fopen在
$fh = @fopen($myFile, 'w');
Run Code Online (Sandbox Code Playgroud)
这有什么意义@?
Tim*_*per 14
它可以抑制表达式可能显示的错误.
你可以在这里阅读更多相关信息.
例:
file_get_contents('file_does_not_exist'); //this shows an error
@file_get_contents('file_does_not_exist'); //this does not
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6608 次 |
| 最近记录: |