downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<i18n Functionslocale_set_default>
Last updated: Thu, 26 Jun 2008

locale_get_default

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

locale_get_default — Get the default Locale

Description

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.

Return Values

Returns a string with the current Locale.

Examples

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

?>

The above example will output:

en_US_POSIX
pt_PT



add a noteadd a note User Contributed Notes
Get the default Locale
There are no user contributed notes for this page.




<i18n Functionslocale_set_default>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs