Which operator is not equal to in php?
Editor to share with you which operator is not equal to php, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
There are three kinds of unequal operators in php, namely: 1,! = symbol, which is used to compare the values of two variables; 2, symbol, which means not equal, the same as! = symbol; 3,! = = symbol, which means absolutely not equal, and returns true if the values of two variables are different or their types are different.
This article operating environment: Windows7 system, PHP7.1, Dell G3 computer.
The unequal operator in php is! =,! = =.
Take a look at an example:
X! = y: not equal to, if x is not equal to y, return true 5 times 8 return true
X y: not equal to, if x is not equal to y, return true 58 return true
X! = = y: absolutely not equal, if x is not equal to y, or if they are of different types, return true 5 equal to "5" return true.
The above is all the content of the article "which operator is not equal to php". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!