執行 ❯
獲取您
自己的 PHP
伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>The && Operator</h1> <p>Write a message if both conditions are true.</p> <?php $x = 100; $y = 50; if ($x == 100 && $y == 50) { echo "Hello world!"; } ?> </body> </html>
與 (&&) 運算子
如果兩個條件都為真,則寫入一條訊息。
你好,世界!