主页
PHP
PHP if 运算符
tryphp_if_less_than
运行 ❯
×
更改方向
保存代码
更改主题
The < Operator
Compare two variables and write a message if $y is less than $x.
<?php $x = 100; $y = 50; if ($y < $x) { echo "$y is less than $x"; } ?>
The < Operator
Compare two variables and write a message if $y is less than $x.
50 is less than 100