1,字符串与时间:
例如
$time = strtotime("2007-3-5");
echo date("Y-m-d H:i:s",$time);
2,当前时间:echo date("Y-m-d H:i:s");
或者 $time = time();