Why && return true and and return false?
This question already has an answer here:
PHP:第一个代码将$ x设置为$ b与$ c的比较结果,两者都必须为真,第二个代码将设置$ y,如$ b和thant,将此成功与$ C
The precedence of operators is what makes the difference here.
PHP Operator Precedence
JavaScript Operator Precedence
链接地址: http://www.djcxy.com/p/57612.html上一篇: '&&'和'AND'在PHP中是不同的
下一篇: 为什么&&返回true并返回false?