代码示例:(标识:demo_php_func_time)
<!DOCTYPE html>
<html>
<body>

<?php
$t=time();
echo($t . "<br>");
echo(date("Y-m-d",$t));
?>

</body>
</html>
运行结果: