PHP Manußl | ||
---|---|---|
P°edchßzejφcφ | Kapitola 10. Operators | Dal╣φ |
Tabulka 10-5. Logical Operators
Example | Name | Result |
---|---|---|
$a and $b | And | True if both $a and $b are true. |
$a or $b | Or | True if either $a or $b is true. |
$a xor $b | Xor | True if either $a or $b is true, but not both. |
! $a | Not | True if $a is not true. |
$a && $b | And | True if both $a and $b are true. |
$a || $b | Or | True if either $a or $b is true. |
The reason for the two different variations of "and" and "or" operators is that they operate at different precedences. (See Operator Precedence.)
P°edchßzejφcφ | Dom∙ | Dal╣φ |
Incrementing/Decrementing Operators | Nahoru | Operator Precedence |