|
IntlDateFormatter::getLocaledatefmt_get_localeGet the locale used by formatter BeschreibungObjektorientierter Stil
public string IntlDateFormatter::getLocale
([ int
$which
] )Prozeduraler Stil
string datefmt_get_locale
( IntlDateFormatter
$fmt
[, int $which
] )Get locale used by the formatter. Parameter-Liste
Rückgabewertethe locale of this formatter or 'false' if error BeispieleBeispiel #1 datefmt_get_locale example
<?phpBeispiel #2 OO example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: 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 Siehe auch
|