位运算符
<?php
/*
* 位运算符号
*
* 位, 按位运算
*
*
*
* hello world
*
* hello world
*
* h e l l o
*
* 104 - 是由32位0 和 1 (二进制组成)
*
*
* 104 = 64 + 32 + 8
*
* 0 0000000 00000000 00000000 01101000 = 104
*
*
*
* boolean && boolean = boolean
*
* 12 & 13 =
*
* 12= 8 + 4
* 13= 8 + 4 + 1
* 00000000 00000000 00000000 00001100
* 00000000 00000000 00000000 00001101 &
* --------------------------------------------
* 00000000 00000000 00000000 00001100
*
* 12
*
* 65 = 64 + 1 = 1000001
* 97 = 64 + 32 + 1 = 1100001 &
* ------------------------------------------
* 1000001
*/
$a = 3;
$b = 5;
if($a > 5 & $b++ < 100) {
echo "111111111111111";
}
echo $b;