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 StatesWednesday 18 October 2017
Wed 18 Oct 2017 02:06:38 PM BST