PHP gettimeofday() 函数
PHP 教程
· 2019-01-24 06:58:56
实例
返回当前时间:
<?php
// Print the array from gettimeofday()
print_r(gettimeofday());
// Print the float from gettimeofday()
echo gettimeofday(true);
?>
// Print the array from gettimeofday()
print_r(gettimeofday());
// Print the float from gettimeofday()
echo gettimeofday(true);
?>
定义和用法
gettimeofday() 函数返回当前时间。
语法
gettimeofday(return_float);
| 参数 | 描述 |
|---|---|
| return_float | 可选。当设置为 TRUE 时,返回一个浮点数,而不是一个数组。默认是 FALSE。 |
技术细节
| 返回值: | 默认返回一个关联数组,带有如下数组键名:R
|
|---|---|
| PHP 版本: | 4+ |
| 更新日志: | PHP 5.1.0:新增了return_float 参数。 |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Practical Algorithms for Programmers
Andrew Binstock、John Rex / Addison-Wesley Professional / 1995-06-29 / USD 39.99
Most algorithm books today are either academic textbooks or rehashes of the same tired set of algorithms. Practical Algorithms for Programmers is the first book to give complete code implementations o......一起来看看 《Practical Algorithms for Programmers》 这本书的介绍吧!