- var_dump: documentation ( source)
- date_create: documentation ( source)
- date: documentation ( source)
- date_modify: documentation ( source)
<?php
//echo strtotime('monday this week', time());
$dayOfWeek = ((int)date('N'))-1;
$startOfWeek = date_modify(date_create(), '-'.$dayOfWeek);
var_dump(date('d', $startOfWeek->getTimestamp()));