Home  >  Article  >  Backend Development  >  What is the php AND or NOT operator?

What is the php AND or NOT operator?

藏色散人
藏色散人Original
2019-11-09 10:48:5410370browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn