|
IntlCalendar::getDayOfWeekTypeTell whether a day is a weekday, weekend or a day that has a transition between the two DescriptionObject oriented style
public int IntlCalendar::getDayOfWeekType
( int
$dayOfWeek
)Procedural style
int intlcal_get_day_of_week_type
( IntlCalendar
$cal
, int $dayOfWeek
)
Returns whether the passed day is a weekday
(
If the return is either
This function requires ICU 4.4 or later. Parameters
Return Values
Returns one of the constants
Examples
Example #1 IntlCalendar::getDayOfWeekType
<?php The above example will output: Locale: English (United States) 1 3 86400000 2 0 3 0 4 0 5 0 6 0 7 1 Locale: Arabic (Saudi Arabia) 1 0 2 0 3 0 4 0 5 1 6 3 86400000 7 0 |