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