PHP
Logical Operators

Arithmetic Operators are used to Perform Arithmetic Operations on Numeric Values Such as addition, subtraction, multiplication and etc.

OperatorNameExampleResult
andAND$a and $btrue if both $a and $b are true
orOR$a or $btrue if either $a or $b is true
xorXOR$a xor $btrue if either $a and $b is true, but not both true.
&&AND$a && $btrue if both $a and $b are true
||OR$a || $btrue if either $a or $b is true. or both are true.
!NOT!$aTrue if $a is a false