|
IntlDateFormatter::getLocaledatefmt_get_localeGet the locale used by formatter DescriptionObject oriented style
public string IntlDateFormatter::getLocale
([ int
$which
] )Procedural style
string datefmt_get_locale
( IntlDateFormatter
$fmt
[, int $which
] )Get locale used by the formatter. Parameters
Return Valuesthe locale of this formatter or 'false' if error ExamplesExample #1 datefmt_get_locale example
<?php Example #2 OO example
<?php The above example will output: 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 See Also
|