PHP-function to convert an integer to a number of words (in Russian)
Sold 42
Refunds 0
Good feedbacks 6
Bad feedbacks 0
If you are creating a site in PHP has become necessary to print the transaction amount is not only an integer, but the words (eg printing accounts for cashless payment, put up on the site), you will come in handy this feature.
At the end transformed into a recipe number, the function adds the word "ruble" in the required form (ruble / ruble / ruble).
For example:
Number 12345 transferred to the "twelve thousand three hundred forty-five rubles."
Number 80000002 converted into "eighty two million rubles."
The number 1861 translated into "a thousand vosemsot sixty one ruble."
Well, etc. up to billions (the limit values \u200b\u200bof integers in PHP).
At the end transformed into a recipe number, the function adds the word "ruble" in the required form (ruble / ruble / ruble).
For example:
Number 12345 transferred to the "twelve thousand three hundred forty-five rubles."
Number 80000002 converted into "eighty two million rubles."
The number 1861 translated into "a thousand vosemsot sixty one ruble."
Well, etc. up to billions (the limit values \u200b\u200bof integers in PHP).
Function code with comments. If necessary, you can always find out and make changes.
If necessary, it can also be translated into any other language.
If necessary, it can also be translated into any other language.