getdate — 取得日期/时间信息-----参数是一个 integer 的 Unix 时间戳

 
<?php
$today getdate();
print_r($today);
?>
Array
(
    [seconds] => 40
    [minutes] => 58
    [hours]   => 21
    [mday]    => 17
    [wday]    => 2
    [mon]     => 6
    [year]    => 2003
    [yday]    => 167
    [weekday] => Tuesday
    [month]   => June
    [0]       => 1055901520
)
posted @ 2018-01-19 17:35  jason&li  阅读(223)  评论(0编辑  收藏  举报