Function __global->find_iso_country_from_name
Definitions
sources/locations.php
- Find the ISO country code from a country name.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $country | string | No | No | required parameter | N/A | N/A | Country name |
Returns
- ISO country code (null: not found)
- Type: ?string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find the ISO country code from a country name.
*
* @param string $country Country name
* @return ?string ISO country code (null: not found)
*/
function find_iso_country_from_name(string $country) : ?string
* Find the ISO country code from a country name.
*
* @param string $country Country name
* @return ?string ISO country code (null: not found)
*/
function find_iso_country_from_name(string $country) : ?string

