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 HTML5 Programming
Eric Freeman、Elisabeth Robson / O'Reilly Media / 2011-10-18 / USD 49.99
What can HTML5 do for you? If you're a web developer looking to use this new version of HTML, you might be wondering how much has really changed. Head First HTML5 Programming introduces the key featur......一起来看看 《Head First HTML5 Programming》 这本书的介绍吧!