i18n Функции
PHP Manual

locale_get_default

(No version information available, might be only in CVS)

locale_get_defaultGet the default Locale

Описание

string locale_get_default ( void )

This function returns the default Locale, which is used by PHP to localize certain features. Please note that this isn't influenced by setlocale() or the system settings.

Возвращаемые значения

Returns a string with the current Locale.

Примеры

Пример #1 A locale_get_default() example

<?php

// get the default Locale
echo locale_get_default();

//set a new Locale...
locale_set_default('pt_PT');

// ... and print it
echo locale_get_default();

?>

Результат выполнения данного примера:

en_US_POSIX
pt_PT

Смотрите также


i18n Функции
PHP Manual