PHP 5.3 comes with an intl extension:
The internationalization extension (hereinafter referred to as Intl) is a wrapper for the ICU library, allowing PHP programmers to perform UCA-compatible sorting and date / time / number / currency formatting in their scripts.
Converting numbers is possible using the NumberFormatter class:
$fmt = new NumberFormatter("de_DE", NumberFormatter::DECIMAL); echo $fmt->format(1234567.891234567890000);
Date conversion is possible using the IntlDateFormatter class:
$fmt = new IntlDateFormatter("en_US", IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN); echo $fmt->format(0);
Access to names, monetary and other information in a specific locale is possible using the Locale class:
echo Locale::getRegion('de-CH-1901');
In addition, there are Collation and MessageFormatter classes.
source share