主页
PHP
PHP if 运算符
tryphp_if_equal
运行 ❯
×
更改方向
保存代码
更改主题
The == Operator
Compare two variables to check if they have the same value.
<?php $x = 100; $y = 100; if ($x == $y) { echo "$x is equal to $y"; } ?>
The == Operator
Compare two variables to check if they have the same value.
100 is equal to 100