主页
PHP
PHP 可迭代对象
tryphp_iterables2
运行 ❯
×
更改方向
保存代码
更改主题
<!DOCTYPE html> <html> <body> <?php function getIterable():iterable { return ["a", "b", "c"]; } foreach(getIterable() as $item) { echo $item; } ?> </body> </html>
abc