临摹微笑
没有,不过可以通过sleep函数来实现。代码:1234567891011121314151617function setTimeout($func, $sec = 0, $timeout = 0, $args = array()) { if (!function_exists($func) || $timeout == 0) { return false; } while ($timeout > 0) { if (!empty($args) && is_array($args)) { call_user_func_array($func, $args); } else { call_user_func($func, $args); } flush(); ob_flush(); sleep($sec); $timeout--; } return false;}