PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Andrea Cristaudo   Numbers2words_it   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: An example file
Class: Numbers2words_it
Converts numeric to italian words
Author: By
Last change:
Date: 21 years ago
Size: 696 bytes
 

Contents

Class file image Download
<?
/* example */
include('numbers2words_it.php');

/* if the second parameter of n2w_it() is 1 or true words are separated by a space */

$NW = new numberstowords_it();
echo
$NW->n2w_it(3)."3<br>";
echo
$NW->n2w_it(1)."1<br>";
echo
$NW->n2w_it(513)."513<br>";
echo
$NW->n2w_it(4313)."4313<br>";
echo
$NW->n2w_it(31313)."31313<br>";
echo
$NW->n2w_it(131313)."131313<br>";
echo
$NW->n2w_it(3131313)."3131313<br>";
echo
$NW->n2w_it('999999999999999')."999999999999999<br>";
echo
$NW->n2w_it(1000000000001)."<br>";
echo
$NW->n2w_it('999999999999999',1)."<br>";
echo
$NW->n2w_it('1000000000001')."<br>";
echo
$NW->n2w_it('1000000000013',1)."<br>";
echo
$NW->euro2word(513.89);
?>