- date: documentation ( source)
- strtotime: documentation ( source)
<?php
echo date('Y-m-d', strtotime('last monday', strtotime('tomorrow', strtotime('2014-10-06'))));
echo "\r\n";
echo date('Y-m-d', strtotime('last monday', strtotime('tomorrow', strtotime('2014-09-30'))));