public static function countryContinentCode($countryCode)
    {
        foreach (static::CODES as $code => $countryCodes) {
            if (in_array($countryCode, $countryCodes)) {
                return $code;
            }
        }

        return null;
    }
public static function countryContinentCode($countryCode)
    {
        foreach (static::CODES as $code => $countryCodes) {
            if (in_array($countryCode, $countryCodes)) {
                return $code;
            }
        }

        return null;
    }
public static function countryContinentCode ( $ countryCode ) { foreach ( static :: CODES as $ code => $ countryCodes ) { if ( in_array ( $ countryCode , $ countryCodes ) ) { return $ code ; } } return null ; }
Returns continent code by ISO 3166-1 alpha-2 country code.
@param string $countryCode ISO 3166-1 alpha-2 country code
@return string|null
Returns continent code by ISO 3166 - 1 alpha - 2 country code .