$eventDate = #תאריך האירוע#; $currentWeek = date(‘W’);
if (date(‘W’, strtotime($eventDate)) == $currentWeek) { return ‘השבוע’; } else { return ”; }