主页
PHP
PHP declare 关键字
tryphp_keyword_declare
运行 ❯
×
更改方向
保存代码
更改主题
<?php $count = 0; function example() { global $count; $count++; echo "$count instructions executed
"; } register_tick_function('example'); declare(ticks=1) { $cars = ["Ford", "Volvo", "BMW"]; foreach($cars as $car) { echo "$car
"; } } ?>