In the logical operator of PHP, XOR represents a logical XOR or
$a XOR $b
Results
Returns true if the $a and $b have and only one is true, or False if all are true or false.
However, when testing the XOR operator, a little problem was founderror
Php array operators$ A + $ B join $ a and $ B.$ A = $ B is equal. If $ a and $ B have the same key/value pair, the value is TRUE.$ A ===$ B. TRUE if $ a and $ B have the same key/value pairs and the order and type are the same.$! = $ B: TRUE if $ a
For more information about array operators (+), string operators (.), AND logical operators (& AND | or xor), see.
Php array Operators
$ A + $ B join $ a and $ B.$ A = $ B is equal. If $ a and $ B have the same key/value pair, the value is TRUE.$ A =
Or the operator,& the XOR operators. Write the code always forget to write $, make oneself think write wrong
[PHP]
$i = 0;
$i =i|1;
echo "$i";//explain the difference between "double quotation marks and ' single quotation marks: double quotes will
1 definitions
An operator is something that can produce another value (and thus the entire structure as an expression) by giving one or more of the values (in programming jargon, expressions).
Operators can be grouped by their ability to accept
PHP8: PHP operators This chapter describes the PHP operators.
The operator problem exists in every language, because we are familiar with one or more programming languages, so we just need to know about it.
To sum up.
There are many PHP operators,
Today we are going to show you the fifth operator of PHP, which is also a very important set of operators in our program, "
logical Operators”。
What is a logical operator?
Logical operation, everyone should be not unfamiliar, in the school math
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.