Haifa linux club:PHP lecture
Prev Next


Logical Operators



$a and $b True if both $a and $b are true.
$a or $b True if either $a or $b is true.
$a xor $b True if either $a or $b is true, but not both.
! $a True if $a is not true.
$a && $b True if both $a and $b are true.
$a || $b True if either $a or $b is true.




HOME