src/Iso3166.php
public static function getByAlpha3($alpha3)
    {
        $alpha3 = strtoupper($alpha3);

        if (!isset(static::$alpha3Index[$alpha3])) {
            throw new OutOfBoundsException("The 3 character alpha code \"$alpha3\" is not listed in ISO 3166");
        }

        return new Country(static::$countries[static::$alpha3Index[$alpha3]]);
    }
public static function getByAlpha3($alpha3)
    {
        $alpha3 = strtoupper($alpha3);

        if (!isset(static::$alpha3Index[$alpha3])) {
            throw new OutOfBoundsException("The 3 character alpha code \"$alpha3\" is not listed in ISO 3166");
        }

        return new Country(static::$countries[static::$alpha3Index[$alpha3]]);
    }
public static function getByAlpha3 ( $ alpha3 ) { $ alpha3 = strtoupper ( $ alpha3 ) ; if ( ! isset ( static :: $ alpha3Index [ $ alpha3 ] ) ) { throw new OutOfBoundsException ( "The 3 character alpha code \"$alpha3\" is not listed in ISO 3166" ) ; } return new Country ( static :: $ countries [ static :: $ alpha3Index [ $ alpha3 ] ] ) ; }
Find and return country by its alphabetic three-character identifier.

@param string $alpha3
@return array
Find and return country by its alphabetic three - character identifier .