Note that this definition depends on which day is the first day of the week, and that if this is not passed as the '$pn_firstdayofweek' parameter, the default is assumed.Note also that the last day week of the year is likely to extend into the following year, except in the case that the last day of the week falls on 31st December.Also note that this is very similar to the ISO week returned by Date