//PHP返回昨天的日期function get_last_date() { $tomorrow = mktime(0,0,0,date("m"),date("d")-1,date("Y")); return date("Y-m-d", $tomorrow);}//PHP返回今天的日期function get_today_date() { $today=date("Y-m-d"); return today;}//PHP返回明天的日期function get_tomorrow_date() { $tomorrow = mktime(0,0,0,date("m"),date("d")+1,date("Y")); return date("Y-m-d", $tomorrow);}
更多关于php相关内容感兴趣的读者可查看本站专题:《php日期与时间用法总结》、《php常用函数与技巧总结》及《php面向对象程序设计入门教程》
希望本文所述对大家PHP程序设计有所帮助。