public static function getPhoneCodeCountry($code, $show_country_code = false)
    {
        $listPhoneCodes = self::phoneCodesList();
        $country = $listPhoneCodes[$code];

        if ($show_country_code) {
            $country = self::getCountry($country);
        }

        return $country;
    }
public static function getPhoneCodeCountry($code, $show_country_code = false)
    {
        $listPhoneCodes = self::phoneCodesList();
        $country = $listPhoneCodes[$code];

        if ($show_country_code) {
            $country = self::getCountry($country);
        }

        return $country;
    }
public static function getPhoneCodeCountry ( $ code , $ show_country_code = false ) { $ listPhoneCodes = self :: phoneCodesList ( ) ; $ country = $ listPhoneCodes [ $ code ] ; if ( $ show_country_code ) { $ country = self :: getCountry ( $ country ) ; } return $ country ; }
Fetches the country based on the phone code passed in.

@param string     $code              the phone code to search for
@param bool|false $show_country_code if to show the country code or its full name

@return mixed
Fetches the country based on the phone code passed in .