PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi
Try to start learning PHP, with Welling book....my programmig experience is very poor.
I dont understand bitwise XOR...
why 4^12= output 8
12^9= output 5
Tried to find answer , Could anybody explain this, please!
thank you
The bitwise XOR takes the binary version of the numbers and compares each the bits of each. If both are 0, they stay 0. If both are 1, they turn to 0. If they are opposite, they turn to 1.