Home >Backend Development >PHP Problem >What is the php AND or NOT operator?
#What is the AND or NOT operator in php?
php AND OR NOT operator is a PHP logical operator.
● And is also AND, the operator is and
$x and $y If both $x and $y are true, then true is returned.
● Or: or, ||
or or $x or $y If at least one of $x and $y is true, return true.
|| or $x || $y Returns true if at least one of $x and $y is true.
● Not:!
!$x If $x is not true, returns true.
Recommended: "PHP Tutorial"
The above is the detailed content of What is the php AND or NOT operator?. For more information, please follow other related articles on the PHP Chinese website!