php && 实例与& 语法
& 这是按位与运算符。
&& 且运算符
来看个 &实例
$a = 11;
$b = 7;
printf("%b & %b = %b", $a, $b, $a & $b);
//Output:
//1011 & 111 = 11
//再看&&实例
if (TRUE && TRUE)
if (1 && 0 == 0)
print "TRUE!";
//TRUE
本站原创教程,转载注明来源http://www.phprm.com
本文地址:http://www.phprm.com/function/d2520e0d46563db9bf5fcb052104e8aa.html
转载随意,但请附上文章地址:-)