php中的时间(),(),日期mktime (), strtotime ()

时间():返回当前的Unix时间戳;

日期():格式化一个本地的时间戳;

mktime(时、分、秒、月、日、年):取得一个日期的时间戳;

strtotime():将任何英文文本的日期时间描述解析为Unix时间戳

& lt; ?php

回波时间(),

回声日期(Y-m-d H:我:年代”,时间());

回声mktime(18 13、54、55岁,9日,2015年),

回声strtotime(“现在”);

回声strtotime(2015年9月10日),

回声strtotime(“+ 1日”);

回声strtotime(“+ 1周”);

回声strtotime(下周四),

回声strtotime(周一);



php中的时间(),(),日期mktime (), strtotime ()