&与&&的区别在哪,通俗怎么讲
What is the difference between & and && - PHP Chinese website Q&A - What is the difference between & and && - PHP Chinese website Q&A
Take a look around and learn.
&是位运算符。&&是布尔逻辑运算符。在运行上,&两边的条件都要判断(不管前面的是ture还是false),而&&先判断前面的,若为false,则后面的不再判断。
What is the difference between & and && - PHP Chinese website Q&A - What is the difference between & and && - PHP Chinese website Q&A
Take a look around and learn.
&是位运算符。&&是布尔逻辑运算符。
在运行上,&两边的条件都要判断(不管前面的是ture还是false),而&&先判断前面的,若为false,则后面的不再判断。