Re: [PHP] is there a number translation function?

2005-11-08 Thread Danny
http://www.phpguru.org/TextualNumberExample.php?number=3450 Regards. Salu2 On 10/29/05, Linda H [EMAIL PROTECTED] wrote: Hi, Does anyone know of a function for translating a decimal number into an English number. In other words, if you pass it 1 it will return 'one', if you pass it 127 it

[PHP] is there a number translation function?

2005-10-29 Thread Linda H
Hi, Does anyone know of a function for translating a decimal number into an English number. In other words, if you pass it 1 it will return 'one', if you pass it 127 it will return 'one hundred twenty seven', and etc. Thanks, Linda -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] is there a number translation function?

2005-10-29 Thread tg-php
I couldn't find one out there Linda (and I'm sure I've seen them before) so since I'm stuck at work on a Saturday I thought I'd take a break and see if I could hack this out myself. Probably a more elegant way to do this, but here's what I came up with. Feel free to use and modify it at will.

Re: [PHP] is there a number translation function?

2005-10-29 Thread Greg Donald
On Sat, 2005-10-29 at 12:13 -0700, Linda H wrote: Does anyone know of a function for translating a decimal number into an English number. In other words, if you pass it 1 it will return 'one', if you pass it 127 it will return 'one hundred twenty seven', and etc.