ecmall中的 $a && $b = statement 理解

在php中若是是 php

&$b //这里是引用传址 file

$a & $b //这里是位运算 plugin

$a && $b //这里是逻辑运算 引用

在ecmal中像下面这们的语句不少 co

is_file($conf_file) && $plugins = include($conf_file); 位运算

它至关于

if(is_file($conf_file)){

include($conf_file);

$plugins = include($conf_file);

}

也就是说 $plugins 为做为include执行结果返回的标志,而is_file($conf_file)站定是否执行下面的语句

相关文章
相关标签/搜索