PHP International Language and Locale codes demonstration

PHP internationalisation example

PHP supports a wide range of languages and localisations, with settings for time and date, currency and number formatting, via the setlocale() function.

This script demonstrates the supported locales of this server - fetched using list_system_locales().

Code experiments

Locale codeLanguage codeLanguageCountry codeCountryDate format
en_US.utf8enEnglishusUnited StatesSunday 24 March 2019
Sun 24 Mar 2019 03:00:14 AM GMT