public static function MobileNumberInterface::getCountryOptions in Mobile Number 7
Get all supported countries.
Parameters
array $filter: Limit options to the ones in the filter. (Eg. ['IL' => 'IL', 'US' => 'US'].
bool $show_country_names: Whether to show full country name instead of country codes.
Return value
array Array of options, with country code as keys. (Eg. ['IL' => 'IL (+972)'])
1 method overrides MobileNumberInterface::getCountryOptions()
- MobileNumber::getCountryOptions in src/
MobileNumber.php - Get all supported countries.
File
- src/
MobileNumberInterface.php, line 91 - MobileNumberInterface.
Class
- MobileNumberInterface
- Provides an interface for defining mobile numbers.
Code
public static function getCountryOptions($filter = array(), $show_country_names = FALSE);