i18n 함수 목록
PHP Manual

locale_get_default

(PHP 5 >= 5.3.0, PECL intl >= 1.0.0)

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.

예제

Example #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