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 StatesThursday 22 August 2019
Thu 22 Aug 2019 02:27:35 PM BST