2
我发现在http://www.phpinterviewquestions.com/php-interview-questions/operator-precedence/PHP:运算符优先级
以下操作这个问题是真的还是假的? (Operator Precedence)
$one = true;
$two = null;
$a = isset($one) && isset($two);
$b = isset($one) and isset($two);
echo $a.'<br>';
echo $b;
我试过上面的代码。但是只有$ b得到回显为1(这是真的)。 $ a没有得到回应。可能是什么原因?我期望$ a是0(假)。
是的,你的权利,它现在适用于var_dump。 – vaanipala 2012-08-14 07:07:37