PHP Logical Operator Precedence

Can anyone tell me why assignments have a higher precedence than the logical operators: xor, and, and or in PHP?


$a = true xor true;

What are the circumstances where we should expect $a to evaluate to true?

Categorized as code Tagged

By Del Putnam

I just keep pushing the buttons until good things happen.