PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Peter Kahl   PHP European Validation   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP European Validation
Validate European country codes
Author: By
Last change: Brexit takes effect on 2020-01-31 at 23:00 GMT
Date: 4 years ago
Size: 1,339 bytes
 

Contents

Class file image Download

European

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

Methods relating to Europe and the European Union.

Usage

use peterkahl\European\European;

echo (European::isEuropeanCountry('GB')) ? 'yes' : 'no';      # yes
echo (European::isEuropeanCountry('RU')) ? 'yes' : 'no';      # no
echo (European::isEuropeanCountry('AL')) ? 'yes' : 'no';      # yes

echo (European::isEEACountry('GB')) ? 'yes' : 'no';           # yes
echo (European::isEEACountry('AR')) ? 'yes' : 'no';           # no
echo (European::isEEACountry('NO')) ? 'yes' : 'no';           # yes

echo (European::isEuropeanUnionCountry('GB')) ? 'yes' : 'no'; # no
echo (European::isEuropeanUnionCountry('CA')) ? 'yes' : 'no'; # no
echo (European::isEuropeanUnionCountry('GB')) ? 'yes' : 'no'; # yes

echo (European::countryUsesEuro('GB')) ? 'yes' : 'no';        # no
echo (European::countryUsesEuro('MC')) ? 'yes' : 'no';        # yes