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 StatesTuesday 22 January 2019
Tue 22 Jan 2019 08:19:57 AM GMT