PHP:'&&'和'AND'之间的区别[重复]

时间:2020-12-19 22:28:19

Possible Duplicate:
PHP - and / or keywords

可能重复:PHP - 和/或关键字

Dear All,

I would like to get clear in mind about conditional operators in php. Please clarify me what is the difference between '&&' and 'AND' in php?

我想清楚地了解php中的条件运算符。请澄清我在PHP中'&&'和'AND'之间的区别是什么?

Thanks in Advance

提前致谢

1 个解决方案

#1


15  

They do the same thing, but && has higher precedence than AND.

他们做同样的事情,但&&的优先级高于AND。

http://php.net/manual/en/language.operators.precedence.php

#1


15  

They do the same thing, but && has higher precedence than AND.

他们做同样的事情,但&&的优先级高于AND。

http://php.net/manual/en/language.operators.precedence.php