摘要: strtotime() 函数将任何英文文本的日期或时间描述解析为 Unix 时间戳 <?php echo(strtotime("now") . "<br>"); echo(strtotime("15 October 1980") . "<br>"); echo(strtotime("+5 hours 阅读全文
posted @ 2017-08-03 15:29 坚持一点点 阅读(377) 评论(0) 推荐(0)
摘要: /** * @param $birthday 出生年月日(1992-1-3) * @return string 年龄 */ function countage($birthday){ $year=date('Y'); $month=date('m'); if(substr($month,0,1)==0){ $month=substr($month,1... 阅读全文
posted @ 2017-08-03 10:38 坚持一点点 阅读(4219) 评论(0) 推荐(0)