售前咨询:400-100-2938
time()函数作用:
php中time()的函数是返回当前时间的Unix时间戳。
time()函数语法:
time();
time()函数使用方法:
例:返回当前时间的Unix时间戳,并格式化输出$t=time();echo($t . "");echo(date("Y-m-d",$t));?>
例:返回当前时间的Unix时间戳,并格式化输出
$t=time();
echo($t . "
");
echo(date("Y-m-d",$t));
?>
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>