21,886
社区成员
发帖
与我相关
我的任务
分享
$a = true;
$b = true;
$c = false;
if($a or $b and $c) echo "true"; //相当于 if($a or ($b and $c))
else echo "false";
echo "<br />";
if($a || $b and $c) echo "true"; //相当于 if (($a || $b) and $c)
else echo "false";