(PHP 5 >= 5.5.0, PHP 7, PECL >= 3.0.0a1)
IntlCalendar::getAvailableLocales — Get array of locales for which there is data
Object oriented style
public static IntlCalendar::getAvailableLocales ( ) : array
Procedural style
intlcal_get_available_locales ( ) : array
Gives the list of locales for which calendars are installed. As of ICU 51, this is the list of all installed ICU locales.
This function has no parameters.
An array of strings, one for which locale.
Example #1 IntlCalendar::getAvailableLocales()
The above example will output:
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/intlcalendar.getavailablelocales.php