PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Peter Kahl  >  PHP Get Locale from CountryCode  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Get Locale from CountryCode
Determine locale language from country code
Author: By
Last change: Update README.md
Update
Date: 1 year ago
Size: 932 bytes
 

Contents

Class file image Download

locale

Downloads Download per Month License If this project has business value for you then don't hesitate to support me with a small donation.

Determine locale from country code.

Usage

use peterkahl\locale\locale;

echo locale::country2locale('hk')."\n";
echo locale::country2locale('DE')."\n";
echo locale::country2locale('gb')."\n";

/* Prints:
zh_HK,en_HK
de_DE
en_GB,ga_GB,cy_GB,gd_GB,kw_GB
*/
For more information send a message to info at phpclasses dot org.