php xor what does it mean

藏色散人
Release: 2023-03-13 17:20:01
Original
4481 people have browsed it

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
Copy after login

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!

Related labels:
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