執行 ❯
獲取您
自己的 PHP
伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <body> <?php function countTo3() { yield "1"; yield "2"; yield "3"; } foreach(countTo3() as $number) { echo $number; echo "<br>"; } ?> </body> </html>
1
2
3