Possible Duplicate:
Get first day of week in PHP?
I want to have the first day of the week if I give any date and it works for all dates except Mondays as it gives me the previous Monday, not this Monday.
My code:
$beginweek = strtotime('last Monday', $timestamp); //$timestamp = a given date