public static function getDetails($code)
    {
        $infos = self::getInfoForCurrencies();
        if (array_key_exists($code, $infos)) {
            return $infos[$code];
        }
        $infos = self::getInfoForCurrenciesWithoutCurrencyCode();
        if (array_key_exists($code, $infos)) {
            return $infos[$code];
        }
        $infos = self::getInfoForCurrenciesWithUnofficialCode();
        if (array_key_exists($code, $infos)) {
            return $infos[$code];
        }
        $infos = self::getInfoForCurrenciesWithHistoricalCode();
        if (array_key_exists($code, $infos)) {
            return $infos[$code];
        }
        throw new \InvalidArgumentException('Unknown \$code: ' . $code);
    }
public static function getDetails($code)
    {
        $infos = self::getInfoForCurrencies();
        if (array_key_exists($code, $infos)) {
            return $infos[$code];
        }
        $infos = self::getInfoForCurrenciesWithoutCurrencyCode();
        if (array_key_exists($code, $infos)) {
            return $infos[$code];
        }
        $infos = self::getInfoForCurrenciesWithUnofficialCode();
        if (array_key_exists($code, $infos)) {
            return $infos[$code];
        }
        $infos = self::getInfoForCurrenciesWithHistoricalCode();
        if (array_key_exists($code, $infos)) {
            return $infos[$code];
        }
        throw new \InvalidArgumentException('Unknown \$code: ' . $code);
    }
public static function getDetails ( $ code ) { $ infos = self :: getInfoForCurrencies ( ) ; if ( array_key_exists ( $ code , $ infos ) ) { return $ infos [ $ code ] ; } $ infos = self :: getInfoForCurrenciesWithoutCurrencyCode ( ) ; if ( array_key_exists ( $ code , $ infos ) ) { return $ infos [ $ code ] ; } $ infos = self :: getInfoForCurrenciesWithUnofficialCode ( ) ; if ( array_key_exists ( $ code , $ infos ) ) { return $ infos [ $ code ] ; } $ infos = self :: getInfoForCurrenciesWithHistoricalCode ( ) ; if ( array_key_exists ( $ code , $ infos ) ) { return $ infos [ $ code ] ; } throw new \ InvalidArgumentException ( 'Unknown \$code: ' . $ code ) ; }
Get details about a given ISO Currency.

@param string $code the three-letter currency code

@return array info about ISO Currency

@throws \InvalidArgumentException if currency code is unknown
Get details about a given ISO Currency .