執行 ❯
獲取您
自己的 PHP
伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>The <= Operator</h1> <p>Compare two variables and write a message if $y is less than, or equal to, $x.</p> <?php $x = 100; $y = 100; if ($y <= $x) { echo "$y is less than, or equal to $x"; } ?> </body> </html>
<= 運算子
比較兩個變數,如果 $y 小於或等於 $x,則輸出一條訊息。
100 小於或等於 100