<?php

$prev_month = strtotime('previous month');
echo date('Y-m-01 - Y-m-t', $prev_month);