PHP comparison operators are used to compare two values (numbers or strings). Today we will introduce the inequality operator.
!=, not equal to operator, returns true if $x is not equal to $y. (Recommended learning: PHP video tutorial)
<>, not equal to operator, returns true if $x is not equal to $y.
$y); // 返回 false,因为值相等 ?>
The above is the detailed content of What is the inequality operator in php. For more information, please follow other related articles on the PHP Chinese website!