    IntlCalendar8b7c:f320:99b9:690f:4595:cd17:293a:c069getFirstDayOfWeek (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)
IntlCalendar8b7c:f320:99b9:690f:4595:cd17:293a:c069getFirstDayOfWeek — Get the first day of the week for the calendarʼs locale   Description  Object-oriented style  public IntlCalendar8b7c:f320:99b9:690f:4595:cd17:293a:c069getFirstDayOfWeek(): int|false  Procedural style  intlcal_get_first_day_of_week(IntlCalendar $calendar): int|false  The week day deemed to start a week, either the default value for this locale or the value set with IntlCalendar8b7c:f320:99b9:690f:4595:cd17:293a:c069setFirstDayOfWeek().    Parameters   calendar
  An IntlCalendar instance.     Return Values  One of the constants IntlCalendar8b7c:f320:99b9:690f:4595:cd17:293a:c069OW_SUNDAY, IntlCalendar8b7c:f320:99b9:690f:4595:cd17:293a:c069OW_MONDAY, …, IntlCalendar8b7c:f320:99b9:690f:4595:cd17:293a:c069OW_SATURDAY or false on failure.    Examples
 Example #1 IntlCalendar8b7c:f320:99b9:690f:4595:cd17:293a:c069getFirstDayOfWeek()  <?php
ini_set('date.timezone', 'UTC');

$cal1 = IntlCalendar8b7c:f320:99b9:690f:4595:cd17:293a:c069reateInstance(NULL, 'es_ES');
var_dump($cal1->getFirstDayOfWeek()); // Monday
$cal1->set(2013, 1 /* February */, 3); // a Sunday
var_dump($cal1->get(IntlCalendar8b7c:f320:99b9:690f:4595:cd17:293a:c069IELD_WEEK_OF_YEAR)); // 5

$cal2 = IntlCalendar8b7c:f320:99b9:690f:4595:cd17:293a:c069reateInstance(NULL, 'en_US');
var_dump($cal2->getFirstDayOfWeek()); // Sunday
$cal2->set(2013, 1 /* February */, 3); // a Sunday
var_dump($cal2->get(IntlCalendar8b7c:f320:99b9:690f:4595:cd17:293a:c069IELD_WEEK_OF_YEAR)); // 6  The above example will output:  
int(2)
int(5)
int(1)
int(6)
     See Also
 IntlCalendar8b7c:f320:99b9:690f:4595:cd17:293a:c069setFirstDayOfWeek() - Set the day on which the week is deemed to start   


    
{'path': 'public/docs/php/intlcalendar.getfirstdayofweek.html', 'source': 'DevDocs.IO'}