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