|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not yet rated by the users||Total: 306 ||All time: 7,314 This week: 423|
This class can validate country code and get the respective name.
It can take a given country code with two letters and determine if it corresponds to a valid country.
The class can also get the name of a country given the respective two letter code.
|Many applications need to take the country code as parameter for their own purposes.
This class can take the two letter code of country and determine if it corresponds to a valid code. It can also return the respective country name.
Methods for working with 2-character country codes (validation, name from code).
When using method
getName(), multibyte strings will be returned.
# Validate a country code string:
# Get name from country code:
echo CountryCode::getName('RE'); # Réunion
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.