PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Peter Kahl   PHP Continent Code to Names   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Continent Code to Names
Retrieve the continent names in multiple languages
Author: By
Last change: Badges and description
Date: 4 years ago
Size: 1,771 bytes
 

Contents

Class file image Download

Continent names in 17 languages

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

Converts continent code to full name in 17 languages (and/or script variations).

  • Arabic (????)
  • Czech (?e?tina)
  • German (Deutsch)
  • Danish (dansk)
  • English
  • Spanish (Español)
  • French (français)
  • Hebrew (???????)
  • Italian (italiano)
  • Japanese (???)
  • Dutch (Nederlands)
  • Portuguese (Português)
  • Russian (???????)
  • Slovak (sloven?ina)
  • Chinese simplified (????)
  • Chinese traditional (????)
  • Welsh (Cymraeg)

Usage

use peterkahl\Continent\Continent;

# These are examples of COUNTRY CODE >>> CONTINENT CODE
echo Continent::Country2ContinentCode('cn');     # AS (China is in Asia)
echo Continent::Country2ContinentCode('HU');     # EU (Hungary is in Europe)

# These are examples of CONTINENT CODE >>> CONTINENT NAME
echo Continent::getContinentName('as', 'he');    # ???????
echo Continent::getContinentName('EU', 'ru');    # ??????
echo Continent::getContinentName('af', 'zh-tw'); # ??
echo Continent::getContinentName('sa', 'cy');    # Sydamerika