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

search for in the

locale_set_default> <Funções para i18n
Last updated: Fri, 22 Aug 2008

view this page in

locale_get_default

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

locale_get_defaultObtem o Locale padrão

Descrição

string locale_get_default ( void )

Esta função retorna o Locale padrão, que é usado pelo PHP para localizar certas características. Note que isto não é influenciado pela setlocale() ou configurações do sistema.

Valor Retornado

Retorna uma string com o atual Locale.

Exemplos

Exemplo #1 Um exemplo da locale_get_default()

<?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();

?>

O exemplo acima irá imprimir:

en_US_POSIX
pt_PT

Veja Também



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

locale_set_default> <Funções para i18n
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites