Location: PHPKode > scripts > Numbers2words_it > numbers2words_it/example.php
<?
/* 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);
?>
Return current item: Numbers2words_it