上个月
echo date("Y-m",strtotime("-1 month")); echo date("Y-m",strtotime("-2 month"));
下个月echo date("Y-m",strtotime("+1 month")); echo date("Y-m",strtotime("+2 month"));
上个月
echo date("Y-m",strtotime("-1 month")); echo date("Y-m",strtotime("-2 month"));
下个月echo date("Y-m",strtotime("+1 month")); echo date("Y-m",strtotime("+2 month"));