用and和or运算符进行逻辑运算答案显示不对
<?php
$a = TRUE; //A同意
$b = TRUE; //B同意
$c = FALSE; //C反对
$d = FALSE; //D反对
//咱顺便复习下三元运算符
echo "显示结果";
echo "
";
echo $a and $b?"通过":"不通过";
运行结果:
显示结果
1
<?php
$a = TRUE; //A同意
$b = TRUE; //B同意
$c = FALSE; //C反对
$d = FALSE; //D反对
//咱顺便复习下三元运算符
echo "显示结果";
echo "
";
echo $a and $b?"通过":"不通过";
运行结果:
显示结果
1
2017-03-13
举报