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 StatesMonday 27 May 2019
Mon 27 May 2019 02:37:36 AM BST