startOfWeek
и diffInDays
function (){
$dayNumber = date ('N', strtotime("+1 day"));
$arr = [1,4,7];
foreach ($arr as $ar){
if ($ar > $dayNumber) return $ar;
}
return $arr[0];
}