IntlDateFormatter::getLocaledatefmt_get_locale(PHP 5 >= 5.3.0, PECL intl >= 1.0.0) IntlDateFormatter::getLocale -- datefmt_get_locale — Get the locale used by formatter ОписаниеОбъектно-ориентированный стиль
string IntlDateFormatter::getLocale
([ int $which
] )
Процедурный стиль Get locale used by the formatter. Список параметров
Возвращаемые значенияthe locale of this formatter or 'false' if error ПримерыПример #1 datefmt_get_locale() example
<?phpПример #2 OO example
<?phpРезультат выполнения данного примера: locale of the formatter is : en First Formatted output is Wednesday, December 31, 1969 4:00:00 PM PT locale of the formatter is : de Second Formatted output is Mittwoch, 31. Dezember 1969 16:00 Uhr GMT-08:00 |
||