- var_dump: documentation ( source)
- getdate: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
//$writer = new XMLWriter();
echo var_dump(getdate(strtotime("-2 month")));
echo date("Y-m-t", strtotime("first day of previous month") ) ;