Home >Backend Development >PHP Problem >php xor what does it mean

php xor what does it mean

藏色散人
藏色散人Original
2021-11-03 11:28:214530browse

php xor is a logical operator in PHP, also called the "XOR" operator. Its usage syntax is such as "x Return true.

php xor what does it mean

The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer

php What does xor mean?

xor is a logical operator in PHP, also called the "XOR" operator.

Syntax: x xor y

XOR

If one and only one of x and y is true, then true is returned

x=6
y=3
(x==6 xor y==3) 返回 false

PHP logical operation The symbols are as follows:

php xor what does it mean

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of php xor what does it mean. 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