Name | Example | Details |
---|---|---|
And | $a and $b | Returns TRUE when both $a and $b are TRUE. |
Or | $a or $b | Returns TRUE when either $a or $b is TRUE. |
Xor | $a xor $b | Returns TRUE when either $a or $b is TRUE, but not both. |
Not | !$a | Returns TRUE when $a is not TRUE. |
And | $a && $b | Returns TRUE when both $a and $b are TRUE. |
Or | $a || $b | Returns TRUE when either $a or $b is TRUE. |
Operators | Operator type | Description |
---|---|---|
++$x | Pre-increment | $x value is incremented before assigning it to variable $x |
$x++ | Post-increment | $x is incremented after assigning it to variable $x |
- -$x | Pre-decrement | $x value decremented before assigning it to variable $x |
$x- - | Post-decrement | $x value decremented after assigning it to variable $x |