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

What is the php AND or NOT operator?

藏色散人
Release: 2023-02-28 13:06:01
Original
10546 people have browsed it

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template