PHP逻辑操作符

简介:这是PHP逻辑操作符的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。

class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=326914' scrolling='no'> Table 7-3. Logical Operators(表7-3 逻辑操作符)

 

example name result?/FONT>
$a and $b And True of both $a and $b are true.?/FONT>
$a or $b Or?/FONT> True if either $a or $b is true.?/FONT>
$a xor $b Or?/FONT> True if either $a or $b is true, but not both.?/FONT>
! $a Not?/FONT> True if $a is not true.?/FONT>
$a && $b And?/FONT> True of both $a and $b are true.?/FONT>
$a || $b Or?/FONT> True if either $a or $b is true.

两种不同“and”和“or”操作符的变化实际上是由于操作的不同优先级别而造成的。(参考以下内容。)

“PHP逻辑操作符”的更多相关文章 》

爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具

http://biancheng.dnbcw.info/php/326914.html pageNo:13
原文地址:https://www.cnblogs.com/ooooo/p/2252300.html