|
|
@@ -70,7 +70,7 @@ class SimpleExchange implements Zend_Currency_CurrencyInterface
|
|
|
$currency = new Zend_Currency(
|
|
|
array(
|
|
|
'value' => 1000,
|
|
|
- 'currency' => 'USD',
|
|
|
+ 'currency' => 'EUR',
|
|
|
)
|
|
|
);
|
|
|
|
|
|
@@ -82,7 +82,7 @@ $currency->setService($service);
|
|
|
$currency2 = new Zend_Currency(
|
|
|
array(
|
|
|
'value' => 1000,
|
|
|
- 'currency' => 'EUR',
|
|
|
+ 'currency' => 'USD',
|
|
|
)
|
|
|
);
|
|
|
|
|
|
@@ -90,8 +90,8 @@ print $currency->add($currency2);
|
|
|
]]></programlisting>
|
|
|
|
|
|
<para>
|
|
|
- The above example will return '$ 3.000' because the 1.000 <acronym>EUR</acronym> will be
|
|
|
- converted by a rate of 2 to 2.000 <acronym>USD</acronym>.
|
|
|
+ The above example will return '$ 3.000' because the 1.000 <acronym>USD</acronym> will be
|
|
|
+ converted by a rate of 2 to 2.000 <acronym>EUR</acronym>.
|
|
|
</para>
|
|
|
|
|
|
<note>
|