setLocale(LC_TIME, 'en_US'); echo strftime('%A, %B %d, %Y %T');
setLocale(LC_MONETARY, 'en_US'); echo money_format('%i', 1234.56);
setLocale(LC_COLLATE, 'fr_FR'); $words = array('été', 'beauté', 'café', 'déjà'); sort($words, SORT_LOCALE_STRING); print_r($words);Output: Array ( [0] => beauté [1] => café [2] => déjà [3] => été ) Package library: The setLocale function is part of the PHP internationalization extension, which is typically included with a standard PHP installation. No additional package library is required.