Right now when I have defined the currencyCode, the currency sign appears in front of the value like €10 000,00, but I'd like to have it like 10 000,00€. How to do that?
At the moment I'm printing '€' separately after the value, but I'm just wondering if there's any way to automate the process.
I was able to resolve this issue installing php5-intl and using this way
Yii::$app->formatter->locale = 'et-EE';
echo Yii::$app->formatter->asCurrency(1202.57, 'EUR');
It will change the sign according to the locale.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With