- time: documentation ( source)
- print_r: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$oDomingoPassado = new DateTime( date('Y-m-d', strtotime('last sunday of past week', time()) ));
$oProximoDomingo = new DateTime( date('Y-m-d', strtotime('next Sunday', time()) ));
print_r($oDomingoPassado);
print_r($oProximoDomingo);