- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$date = '2016-11-06 12:00:00'; // sunday
echo date("Y-m-d", strtotime('monday this week', strtotime($date))), "\n";
echo date("Y-m-d", strtotime('friday this week', strtotime($date))), "\n";