PHP Logical Operator Precedence

Can anyone tell me why assignments have a higher precedence than the logical operators: xor, and, and or in PHP? Given: $a = true xor true; What are the circumstances where we should expect $a to evaluate to true?

Published
Categorized as code Tagged

I will never stop learning

This is the first in a series of haiku about the Automattic Creed. Failure and Success Are equally good fortune. Both a chance to learn. Or how about this one: Learning and teaching: Two sides of a single coin. Inseparable.