Thanks, Thomas, but this is not exactly what I tried to achieve. Sorry, I didn't describe the problem too much clearly. I didn't want to display:
"1000 EUR"
but rather
"1000 €"
(I mean, symbol for EURO, not its 3-letter code). So, depending on options passed to option array, I would like print:
"1000 €", "1000 $", "1000 £", etc.
With the 'symbol' option you adviced, manual and couple of tries, I found out the solution:
$oCurrency = new Zend_Currency('en_GB');
var_dump($oCurrency->toCurrency(1000, array('symbol' => $oCurrency->getSymbol('EUR', 'en_GB'), 'precision' => 1)));
var_dump($oCurrency->toCurrency(1000, array('symbol' => $oCurrency->getSymbol('USD', 'en_GB'), 'precision' => 1)));
(locale must be set in getSymbol() otherwise Exception is thrown)
Thanks for your help
Best regards
thomasW wrote:
You set the currency name to be a defined value, but you did not set it do be displayed.
As from your initiation a currency sign is available it will be used instead.
You could eighter use the option 'symbol' => 'EUR' or simply use 'EUR' at initialisation.