如文档中所述,您应该将当月第一天的日期作为第二个参数传递给
strtotime()函数:
$base = strtotime(date('Y-m',time()) . '-01 00:00:01');echo date('m/Y',strtotime('+0 month', $base));echo date('m/Y',strtotime('+1 month', $base));echo date('m/Y',strtotime('+2 month', $base));看到它有效:http :
//ideone.com/eXis9
01/2012
02/2012
03/2012



