Codes here !
2 posts • Page 1 of 1
is the $id->flags==32768? i think it might be and that would explain your results.
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
Who is online
Users browsing this forum: No registered users and 1 guest