Notable PHP package: PHP Convert Words to Numbers

Recommend this page to a friend!
  PHP Classes blog     Notable PHP package: ...   Post a comment   See comments (0)   Trackbacks (0)  


Viewers: 68

Last month viewers: 2

Categories: Notable Packages

Very often applications need to be able to spell numbers using words in a given language. There are many solutions for that because it is a relatively easy problem.

However, there are not many solutions that do the opposite, i.e. take text written in a given language that represents a certain amount and return the number value of the amount that.

This class does precisely that. It takes a text representing an amount in English and returns the number that is spelled.

It is pretty smart to the point of understanding the different ordering that an amount can be spelled as well when the amount is spelled using Indian word variants like lakh and crore instead of millions and billions.

Read this article to learn more details about how this notable PHP package works.

The package PHP Convert Words to Numbers is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: Convert text with an amount to its numeric value

Here follows in more detail what it does:

This class can can Convert text with an amount to its numeric value.

It takes a text string with a number or money amount in English and converts it to the respective number.

The class can automatically detect the numbers using native English or Indian alternatives, like billion or crore.

It returns either the number as integer or formatted string according to the detected number system.

It can deal with words entered in different order, or add values of expressions that represent sums of the numbers like "twelve hundred and twelve hundred and twenty three hundred".

Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.

You need to be a registered user or login to post a comment

1,561,119 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:



No comments were submitted yet.

  PHP Classes blog     Notable PHP package: ...   Post a comment   See comments (0)   Trackbacks (0)  

For more information send a message to info at phpclasses dot org.