i18n\Formatter $numberFormatterSymbols

$numberFormatterSymbols public property (available since version 2.0.4)

A list of name value pairs that are passed to the intl Numberformatter::setSymbol() method of all the number formatter objects created by createNumberFormatter(). This property takes only effect if the PHP intl extension is installed.

Please refer to the PHP manual for the possible options.

For example to choose a custom currency symbol, e.g. U+20BD instead of руб. for Russian Ruble:

[
    NumberFormatter::CURRENCY_SYMBOL => '₽',
]
doc_Yii
2016-10-30 17:05:54
Comments
Leave a Comment

Please login to continue.