Reputation: 35
I'm programming an invoice script. I'm looking for a php script that convert number to letter. Exemple, the invoice show this value : 155€
The script put automatically: ONE HUNDRED FIFTY FIVE
Any ideas ?
N.B: I find some script but i want one that support FRENCH letters.
Thank you :)
Upvotes: 0
Views: 1062
Reputation: 382746
See:
To convert to French with Numbers_Words
, you do:
// include class
include("Numbers/Words.php");
// create object
$nw = new Numbers_Words();
// convert to string
echo "3000000 in words is " . $nw->toWords(3000000, 'fr');
^
Language Specified
Upvotes: 1
Reputation: 24998
If you can't find a French script, take an English one and convert this to do what you're after - it'll be close enough to what you need, and should need little more than changing the number words to French.
Upvotes: 0