There are three ways to express inequality in php, namely: 1. "x != y" mode, which means if x is not equal to y, return true; 2. "x <> y" mode , which means that when x is not equal to y, it returns true; 3. "x !== y" method means that it is absolutely not equal.
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
How to express not equal in php?
x != y Not equal to If x is not equal to y, return true 5!=8 Return true
x <> y Not equal If x is not equal to y, return true 5<>8 Return true
PHP video tutorial]
The above is the detailed content of How to express not equal in php. For more information, please follow other related articles on the PHP Chinese website!