【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
相關文章
相關標籤/搜索