Logical Operators in Order of Precedence : Logic Operators : Language Basics PHP Source Code

PHP Source Code » Language Basics » Logic Operators »


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 

HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Logic Operators