欢迎光临
我们一直在努力

逻辑操作符-PHP教程,其它文章

建站超值云服务器,限时71元/月

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”操作符的变化实际上是由于操作的不同优先级别而造成的。(参考以下内容。)

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 逻辑操作符-PHP教程,其它文章
分享到: 更多 (0)

相关推荐

  • 暂无文章