+ 6

PHP operators difference

What is the difference between I)or and || II)and and && If they are all same, why is there no symbol for xor operator?

9th May 2017, 9:07 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
1 ответ
+ 6
no it is not the same. the priority of && (higher than ||) and AND is different (lower than ||) $a && $b || $c means ($a and $b) or $c $a AND $b || $c means $a and ($b or $c)
9th May 2017, 9:17 AM
Oliver