PHP time() 函数
PHP 教程
· 2019-01-24 09:43:42
实例
返回当前时间的 Unix 时间戳,并格式化为日期:
<?php
$t=time();
echo($t . "<br>");
echo(date("Y-m-d",$t));
?>
$t=time();
echo($t . "<br>");
echo(date("Y-m-d",$t));
?>
定义和用法
time() 函数返回自 Unix 纪元(January 1 1970 00:00:00 GMT)起的当前时间的秒数。
语法
time();
技术细节
| 返回值: | 返回一个包含当前时间的 Unix 时间戳的整数。 |
|---|---|
| PHP 版本: | 4+ |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Object-Oriented Design Heuristics
Arthur J. Riel / Addison-Wesley Professional / 1996-05-10 / USD 64.99
Product Description Here is the first object-oriented development book to provide specific experience-based guidelines to help developers make the right design decisions. This book offers the next ......一起来看看 《Object-Oriented Design Heuristics》 这本书的介绍吧!