Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

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  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Numbers2words
Converts numbers to words (UK and US/FR)
Author: By
Last change:
Date: 12 years ago
Size: 466 bytes
 

Contents

Class file image Download
<?
/* example */
include('numberstowords.php');
$NW= new numberstowords();
echo 
$NW->n2w(3)."\n";
echo 
$NW->n2w(13)."\n";
echo 
$NW->n2w(313)."\n";
echo 
$NW->n2w(1313)."\n";
echo 
$NW->n2w(31313)."\n";
echo 
$NW->n2w(131313)."\n";
echo 
$NW->n2w(3131313)."\n";
echo 
$NW->n2w('999999999999999')."\n";
echo 
$NW->n2w(1000000000001)."\n";
echo 
$NW->n2w('999999999999999',1)."\n";
echo 
$NW->n2w('1000000000001')."\n";
echo 
$NW->n2w('1000000000013',1)."\n";
?>