public int IntlCalendar::getDayOfWeekType    ( int $dayOfWeek   )

IntlCalendar::getDayOfWeekTypeTell whether a day is a weekday, weekend or a day that has a transition between the two

cal

The IntlCalendar resource.

dayOfWeek

One of the constants IntlCalendar::DOW_SUNDAY, IntlCalendar::DOW_MONDAY, …, IntlCalendar::DOW_SATURDAY.