<?php $dt1 = new \DateTime( '2014/12/31' ); $dt1->modify( '-1 month' ); $m = (int) $dt1->format( 'm' ); var_dump( $m ); // still 12 !!!
You have javascript disabled. You will not be able to edit any code.