728x90
SMALL
#php
#PHP/operators/logical operators
$a and $b
Returns TRUE if both $a and $b are TRUE.
$a or $b
Returns TRUE if $a or $b is TRUE. Note that if both are TRUE, it is also TRUE. That is, FALSE only if both are FALSE.
$a x or $b
Returns TRUE only if either $a or $b is TRUE.
! $a
Returns TRUE if $a is not TRUE.
$a && $b
Returns TRUE if both $a and $b are TRUE.
$a || $b
Returns TRUE if $a or $b is TRUE.
728x90
LIST
'PHP' 카테고리의 다른 글
[PHP] PHP/operators/increase operator, decrease operator (0) | 2022.08.13 |
---|---|
[PHP] PHP/operators/comparison operators (0) | 2022.08.08 |
[PHP] PHP/operators/arithmetic operators (0) | 2022.08.08 |
[PHP] PHP/operator/assignment operator (0) | 2022.08.04 |
[PHP] How to create PHP/variables/flow variables (variables within variables) (0) | 2022.08.04 |