# echo date("Y-m-d H:i:s', strtotime ("+1 day")) . "/n"; //输出当前时间的后一天 # echo date("Y-m-d H:i:s", strtotime("2 years ago"));//输出两年前的当天时间 # echo date("Y-m-d H:i:s", strtotime("200810101111"));//输出08年10月10日11点11 # echo date("Y-m-d H:i:s", strtotime('next monday'));//输出下个星期一 如果要输出相对某个特定时间间隔的时间,可以这样写 1. echo date("Y-m-d H:i:s", strtotime('+1 month', strtotime('2008-10-10 11:11:11')));//输出08年10月下个月的时间 2. echo date("Y-m-d H:i:s", strtotime('2008-10-10 11:11:11 + 1 month'));//这样写也可以。