Codes here !
2 posts • Page 1 of 1
the way that a bitwise and comparison works, is by taking the binary representation of 2 numbers, and totalling their common bits. for example,
returns 2 because this comparison takes place:
Code: Select all
<?php echo 2&3; ?>
no matter what you change the second number to, you'll never get a greater number from the comparison than 2, because it is impossible to have a common bit of greater value than one of your numbers. I hope that helps a bit.10