$year = 2010; $month = 10;
How do I get the previous month 2010-09 and next month 2010-11?
2010-09
2010-11
echo date('Y-m-d', strtotime('next month'));