<?php $prev_month = strtotime('previous month');echo date('Y-m-01 - Y-m-t', $prev_month);
<?php echo date('Y-m-d', strtotime('Monday last week'));
2012-07-01 - 2012-07-31
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!