PHP: i18n_loc_get_default - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

i18n_loc_set_default Unicode

Last updated: Sat, 27 Jan 2007

view this page in

# i18n_loc_get_default

(no version information, might be only in CVS)

i18n_loc_get_default -- Get the default Locale

## Описание

string i18n_loc_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 i18n_loc_get_default() example

`<?php
// get the default Locale
echo i18n_loc_get_default();
//set a new Locale...
i18n_loc_set_default('pt_PT');
// ... and print it
echo i18n_loc_get_default();
?>`

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

    en_US_POSIX
    pt_PT

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

i18n_loc_set_default()

add a note User Contributed Notes
i18n_loc_get_default
There are no user contributed notes for this page.
i18n_loc_set_default Unicode

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 11:33:19 2007 PST