執行 ❯
獲取您
自己的 PHP
伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <body> <?php $i = 8; do { echo $i; $i++; } while ($i < 6); ?> <p>As you can see, the code is executed once, even if the condition is never true.</p> </body> </html>
8
正如你所見,程式碼執行了一次,即使條件永遠不為真。