Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚开始使用php。我以前用过ANDandOR但发现了&&and ||,这些运算符有什么区别?
AND
OR
&&
||
“||” 具有比“或”更高的优先级 “&&”的优先级高于“and”
“||” 具有比“或”更高的优先级
“&&”的优先级高于“and”
来自php手册,可以在这里阅读全文(Example1)