运行 ❯
获取您
自己的 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.)
你好,世界!