function myfunc()
{
print "I will pass!";
}
register_tick_function("myfunc");
declare(ticks=1)
{
}
我编写以下代码是为了理解 php 中与“declare”语句一起使用的“ticks”主题,但不知道为什么输出是:“我会通过!我会通过!我会通过!” 我已经看到了 declare 构造的手册部分,但我发现它的解释不完整 http://php.net/manual/en/control-structures.declare.php