【PHP】运算符

author:咔咔

wechat:fangkangfk

 

x && y 若是 x 和 y 都为 true,则返回 true x=6
y=3
(x < 10 && y > 1) 返回 true
x || y 若是 x 和 y 至少有一个为 true,则返回 true x=6
y=3
(x==5 || y==5) 返回 false
! x 若是 x 不为 true,则返回 true x=6 y=3 !(x==y) 返回 true