PHP Classes

Words To Numbers: Convert a string of English words to numbers

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 46%Total: 538 This week: 1All time: 5,595 This week: 560Up
Version License PHP version Categories
word-to-number 1.0GNU General Publi...4.0PHP 5, Text processing
Description 

Author

This class convert a string of English words to numbers.

It can parse a string with words that spells a numeric value in English and retrieve the number that it represents.

Currently it convert strings that represent a number smaller than one thousand millions.

Innovation Award
PHP Programming Innovation award nominee
August 2011
Number 10
Some applications, in particular those that deal with documents that represent monetary values, need to spell a given amount in words of a given idiom.

This class can be used to do the opposite, i.e. take a string with English words that represent a number and parse it to determine what is the original value amount.

Manuel Lemos
Picture of Muhammad Arfeen
Name: Muhammad Arfeen is available for providing paid consulting. Contact Muhammad Arfeen .
Classes: 9 packages by
Country: Pakistan Pakistan
Age: 46
All time rank: 4614 in Pakistan Pakistan
Week rank: 106 Up5 in Pakistan Pakistan Down
Innovation award
Innovation award
Nominee: 5x

Winner: 1x

  Files folder image Files  
File Role Description
Plain text file wordtonumber.class.php Class Class File
Plain text file example.php Example example script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:538
This week:1
All time:5,595
This week:560Up
User Ratings User Comments (1)
 All time
Utility:66%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:46%StarStarStar
Rank:3142
 
Very good
7 years ago (Mohammed Asad)
70%StarStarStarStar