PHP: loop to create list of previous 12 months
问题 is there a way I can use a PHP loop to create a list like the following with the previous 12 months, based on the current month (excluding the current month) ? The value should always be the first of the month (format: yyyy-mm-dd) and the dropdown itself should just show year and month (format: yyyy-mm): <option value="2014-03-01">2014-03</option> <option value="2014-02-01">2014-02</option> <option value="2014-01-01">2014-01</option> <option value="2013-12-01">2013-12</option> <option value=