Hello,
It's really pain in ass to get currency symbol. In ZF1 there was a
wonderful class Zend_Currency. And I could resolve the task quickly.
But now I'm using Intl NumberFormatter to deal with currency. But this
class allow to get only currency of locale it constructed with - I
can't pass currency code I want.

So the only one method it has:

NumberFormatter::getSymbol(NumberFormatter::CURRENCY_SYMBOL);

When I googled I found crazy solutions that propose to use
NumberFormatter::formatCurrency() passing some value and then parse it
to get a symbol.

Could someone suggest me - how to get currency symbol for a chosen
locale now with zf2?

Many thanks

Maxim Savenko
[email protected]

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to