I need to convert amount into words for example total = 5600 into five thousand six hundred only in yii2
Asked
Active
Viewed 932 times
-3
-
Not sure about yii but you can use this custom function: http://stackoverflow.com/questions/14314997/how-to-convert-amount-in-number-to-words – Phiter Jun 21 '16 at 12:01
-
@PhiterFernandes - I was going to link something similar but then I saw that he only wanted it to work in yii2... ;-) – Magnus Eriksson Jun 21 '16 at 12:02
-
I found a yii1 extension. I have never used yii actually – Phiter Jun 21 '16 at 12:03
-
thank you for your comment – clash Jun 21 '16 at 12:04
1 Answers
1
In case of using Yii2 you can do it as simple as the following:
see this Doc reference.
You have to use formatter it will then format it according to your app's language
Kandarp Patel
- 995
- 6
- 19