Depending on your PHP version you can use DateTime object (introduced in PHP 5.2 if I remember correctly):
modify('-1 month');
You can pass another date to the constructor, it does not have to be the current date. More information: http://php.net/manual/en/datetime.modify.php