PHP time_sleep_until() 函数
PHP 教程
· 2019-01-27 15:27:00
实例
延迟执行当前脚本直到 10 秒:
<?php
// wake up ten seconds from now
time_sleep_until(time()+10);
?>
// wake up ten seconds from now
time_sleep_until(time()+10);
?>
定义和用法
time_sleep_until() 函数延迟执行当前脚本直到指定的时间。
注释:如果指定数字是负数,该函数将抛出一个错误。
语法
time_sleep_until(timestamp)
| 参数 | 描述 |
|---|---|
| timestamp | 必需。规定唤醒的时间。 |
技术细节
| 返回值: | 如果成功则返回 TRUE,如果失败则返回 FALSE。 |
|---|---|
| PHP 版本: | 5.1.0+ |
| 更新日志: | 直到 PHP 5.3.0 版本,该函数才在 Windows 平台下实现。 |
点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html
Head First HTML and CSS
Elisabeth Robson、Eric Freeman / O'Reilly Media / 2012-9-8 / USD 39.99
Tired of reading HTML books that only make sense after you're an expert? Then it's about time you picked up Head First HTML and really learned HTML. You want to learn HTML so you can finally create th......一起来看看 《Head First HTML and CSS》 这本书的介绍吧!