好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

php且或非运算符是什么

php且或非运算符是什么?

php且或非运算符是属于php逻辑运算符。

● 且也就是与,运算符是and

$x and $y 如果 $x 和 $y 都为 true,则返回 true。

● 或:or、||

or 或 $x or $y 如果 $x 和 $y 至少有一个为 true,则返回 true。

|| 或 $x || $y 如果 $x 和 $y 至少有一个为 true,则返回 true。

● 非:!

!$x 如果 $x 不为 true,则返回 true。

推荐:《PHP教程》

以上就是php且或非运算符是什么的详细内容,更多请关注Gxlcms其它相关文章!

查看更多关于php且或非运算符是什么的详细内容...

  阅读:34次