<?php// get the default Localeecho locale_get_default();//set a new Locale...locale_set_default('pt_PT');// ... and print itecho locale_get_default();?>
The above example will output:
en_US_POSIX pt_PT