|
IntlCalendar::getDayOfWeekTypeTell whether a day is a weekday, weekend or a day that has a transition between the two BeschreibungObjektorientierter Stil
public int IntlCalendar::getDayOfWeekType
( int
$dayOfWeek
)Prozeduraler Stil
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. Parameter-Liste
Rückgabewerte
Returns one of the constants
Beispiele
Beispiel #1 IntlCalendar::getDayOfWeekType
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: 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 |