Logical Operators in Order of Precedence : Logical Operators « Operator « PHP

Logical Operators in Order of Precedence

Operation          Operator        Class         Associativity       Example
Logical AND        &&              Binary        Left                $a && $b

Logical OR         ||              Binary        Left                $a || $b

Logical NOT        !               Unary         Right               !$a

Logical XOR        xor             Binary        Left                $a xor $b

Logical AND        and             Binary        Left                $a and $b

Logical OR         or              Binary        Left                $a or $b 

Related examples in the same category

1.Use the boolean compare operators
2.Greater than
3.Less than
4.Greate and equal
5.Less than and equal
6.Not equal: !=
7.Logical Operators
8.Logic Operators in PHP
9.Or operator
10.Leap Year Determination
11.Negation operator
12.The not-equals operator
13.Relational Operators summary table
14.Relational Operators in action