时间:2021-07-01 10:21:17 帮助过:2人阅读
下面通过举例来理解这两个关键字的使用:
比如:【1】
$isRight or $a=1000;
他与下面这段代码是等价的:
if(isRight==true){}else{ $a=1000;} $update and $db_factory=1;
if($update==true){ $db_factory=1;} $aa and $b=1 or $c=1
if ($aa){ $b=1 }else{ $c=1 }