PHP function to convert an integer to a number of words

Affiliates: 0,05 $ — how to earn
Pay with:
i agree with "Terms for Customers"
Sold: 0
Refunds: 0

Uploaded: 01.08.2016
Content: PHP_int_to_char.php (2,27 kB)

Description

A very useful and simple function if you are to create a PHP site should be the amount of output is not only an integer, but also in words (for example, when printing invoices online), then this function is simply irreplaceable.

Just add this feature at the end of the ruble / ruble / rubles (in the right declination).

An example of the script:
Of the 53423 translates into "Fifty-three thousand four hundred twenty-three ruble".
Of the 310 translates into "Three hundred and ten rubles."
Of the 21 transfers in "twenty-one rubles".
Of the 1000021 translates to "one million twenty-one rubles".
etc.

PHP script is debugged and fully working. It was created for a large online store.
For a long time we are looking for a ready script, but did not find anything decent. As a result, you write your own.

Additional information

PHP-function code is very simple and intuitive. You can make changes.
It is not difficult to translate into any other language.

Feedback

0
No feedback yet.
Period
1 month 3 months 12 months
0 0 0
0 0 0
In order to counter copyright infringement and property rights, we ask you to immediately inform us at support@plati.com the fact of such violations and to provide us with reliable information confirming your copyrights or rights of ownership. Email must contain your contact information (name, phone number, etc.)