运行 ❯
获取您
自己的 PHP
服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>The > Operator</h1> <p>Compare two variables and write a message if $x is greater than $y.</p> <?php $x = 100; $y = 50; if ($x > $y) { echo "$x is greater than $y"; } ?> </body> </html>
大于号 (>)
比较两个变量,如果变量 x 大于变量 y,则显示消息。
100 大于 50