数据分析师2017-10-01 00:48:50
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.
大家讲道理2017-03-13 23:32:15
&是位运算符。&&是布尔逻辑运算符。
在运行上,&两边的条件都要判断(不管前面的是ture还是false),而&&先判断前面的,若为false,则后面的不再判断。