fork(20) download
  1. <?php
  2.  
  3. $prev_month = strtotime('previous month');
  4. echo date('Y-m-01 - Y-m-t', $prev_month);
Success #stdin #stdout 0.02s 13112KB
stdin
<?php
echo date('Y-m-d', strtotime('Monday last week'));
stdout
2012-07-01 - 2012-07-31