主页
PHP
PHP if 运算符
tryphp_if_not_equal
运行 ❯
×
更改方向
保存代码
更改主题
The != Operator
Compare two variables and write a message if they don't have the same value.
<?php $x = 100; $y = 50; if ($x != $y) { echo "$x is not equal to $y"; } ?>
The != Operator
Compare two variables and write a message if they don't have the same value.
100 is not equal to 50