这个PHP语句什么意思

来源:百度知道 编辑:UC知道 时间:2024/05/15 19:03:27
if(!@include_once(S_ROOT.'./config.php')) {

以上include_once为什么要加@?
@include_once在if中会返回什么?加载是否成功?

include当发生错误的时候..会停止程序继续运行~~

@表示忽略错误~

如果被include的代码页包含return(非函数级)..那么就将得到一个值...

比如
<?php
// page A
return true;
?>

<?php
// page B
x = include("A.php"); // 得到true
?>

好像加@是不报错的意思。

不显示错误

分给那个九级的。。。