$a = 23;
$res = $a << 4
print($res);
For the code snippet pasted above, the output is 368. How is it being calculated?
I expected 92.
a is 23
a in base 2 is 10111
so a in 8 bits is 00010111
Left shift 4 is 01110000
It is - 92
Can some body explain me ?