Login   Register  
PHP Classes
elePHPant
Icontem

Class: Numbers2words

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bas Jobsen  >  Numbers2words  >  Download .tar.gz .zip  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Numbers2words
Base name: numbers2words
Description: Converts numbers to words (UK and US/FR)
Related classes: ,
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1076 users
All time rank: 2817
Week users: 0 users
Week rank: 2663
Picture of Bas Jobsen
Author: Bas Jobsen <e-mail contact>
Packages: 9 Browse this author's classes Browse this author's classes
Country: The Netherlands The Netherlands - PHP jobs in The Netherlands
Age: 35
All time rank: 2045 in The Netherlands The Netherlands
Week rank: 715 Down16 in The Netherlands The Netherlands Down


  Detailed description  
Converts numbers to words.

Numbers range from 0 to 999.999.999.999.999

Note: argument to n2w is a string. Use strings for big number (usually bigger then 2^32) see example.php

For british (GB) numbers call with a optional second argument = 1.

British (GB)
n2w('1000000000',1) gives "one milliard"
n2w('1000000000000',1) gives "one billion"

American (US/FR)
n2w('1000000000') gives "one billion"
n2w('1000000000000') gives "one trillion"

 

  Groups  
Group folder image Text processing Manipulating and validating text data View top rated classes

  Rate classes User ratings   Applications   Files Files  

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (81.2%)
Sufficient (62.5%)
-
Sufficient (62.5%)
-
-
Not sure (53.1%)
1284
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file example.php Example example
Plain text file licence.txt Lic. licence
Plain text file numbers2words.php Class numbers2words

Download all files: numbers2words.tar.gz numbers2words.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.