Why can you see this behavior of the logical operator xor
?
$bool = false xor true;
var_dump($bool); // bool(false)
$bool = true xor false;
var_dump($bool); // bool(true)
So I read, xor
should return true only if one or the other is true but not both (uniqueness), so should not return all boolean(true)
?