Skip to content

Commit

Permalink
add getFromContinent() in README
Browse files Browse the repository at this point in the history
  • Loading branch information
moshthepitt committed Apr 12, 2016
1 parent 6c2f2a9 commit afa5140
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ $countries = CountriesArray::get2d( null, 'name' ); // return array of country n
$countries = CountriesArray::get2d( null, 'alpha2' ); // return array of alpha2 codes
```

Get countries filtered by continent

```
$countries = CountriesArray::getFromContinent( 'alpha2', 'name', 'Africa' ); // returns alpha2->name array of countries from Africa
$countries = CountriesArray::getFromContinent( 'num', 'alpha3', 'Asia' ); // return numeric-codes->alpha3 array of countries from Asia
$countries = CountriesArray::getFromContinent( 'num', 'name', 'Europe' ); // return numeric-codes->name array of countries from Europe
```

##IMP Note
Do not use ISD code(isd) and continent as key fields, as there are multiple records for them

0 comments on commit afa5140

Please sign in to comment.