You are here

public static function MobileNumberInterface::getCountryCode in Mobile Number 7

Gets the country phone number prefix given a country code.

Parameters

string $country: Country code (Eg. IL).

Return value

int Country phone number prefix (Eg. 972).

1 method overrides MobileNumberInterface::getCountryCode()
MobileNumber::getCountryCode in src/MobileNumber.php
Gets the country phone number prefix given a country code.

File

src/MobileNumberInterface.php, line 24
MobileNumberInterface.

Class

MobileNumberInterface
Provides an interface for defining mobile numbers.

Code

public static function getCountryCode($country);