Re: [PHP] int to string

2006-04-07 Thread tedd
At 10:50 PM -0400 4/6/06, sgsweb wrote: Hi Tanner, Here's a completely working piece of code that I got from my hosting company. This looks like it does exactly what you want to do. I am also including the output in the bottom of this e-mail. sunil. Was that for php 5? I couldn't get it

Re: [PHP] int to string

2006-04-06 Thread Kevin Waterson
err, that should be http://phpro.org/examples/Convert-Numbers-to-Words.html Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] int to string

2006-04-06 Thread Kevin Waterson
This one time, at band camp, Peter Hoskin [EMAIL PROTECTED] wrote: Want a complete solution? $88 AUD/hr. Or simply use this function... http://phpro.org/examples/Numbers-to-Words.html and my rates are only $85 AUD/hr ;) Kevin -- Democracy is two wolves and a lamb voting on what to have for

Re: [PHP] int to string

2006-04-06 Thread tedd
At 4:27 PM -0700 4/5/06, Tanner Postert wrote: I don't think it's built in, so I was wondering ya'll would recommend as the best way to convert int to string, not basic type casting, but converting to the english word the int represents. Something like this: 5 = Five or 20 = Twenty Tanner:

Re: [PHP] int to string

2006-04-06 Thread sgsweb
Hi Tanner, Here's a completely working piece of code that I got from my hosting company. This looks like it does exactly what you want to do. I am also including the output in the bottom of this e-mail. sunil. ? /** ** **

Re: [PHP] int to string

2006-04-05 Thread Peter Hoskin
Tanner Postert wrote: I don't think it's built in, so I was wondering ya'll would recommend as the best way to convert int to string, not basic type casting, but converting to the english word the int represents. Something like this: 5 = Five or 20 = Twenty You're right - its not built in.

RE: [PHP] int to string

2006-04-05 Thread Chrome
April 2006 00:47 To: Tanner Postert; php-general@lists.php.net Subject: Re: [PHP] int to string Tanner Postert wrote: I don't think it's built in, so I was wondering ya'll would recommend as the best way to convert int to string, not basic type casting, but converting to the english word the int

Re: [PHP] int to string

2006-04-05 Thread Peter Hoskin
Chrome wrote: Won't work 20 would become 'two zero' not 'twenty' as the for loop identifies 1 character at a time Don't have any suggestions... Just critisms :-D... hehe sorry You don't say... it won't even convert 2 to 'two' so obviously this is an EXAMPLE and not a COMPLETE SOLUTION.

RE: [PHP] int to string

2006-04-05 Thread Chrome
-general@lists.php.net Subject: Re: [PHP] int to string Chrome wrote: Won't work 20 would become 'two zero' not 'twenty' as the for loop identifies 1 character at a time Don't have any suggestions... Just critisms :-D... hehe sorry You don't say... it won't even convert 2 to 'two' so

Re: [PHP] int to string

2006-04-05 Thread Ray Hauge
On Wednesday 05 April 2006 16:47, Peter Hoskin wrote: Tanner Postert wrote: I don't think it's built in, so I was wondering ya'll would recommend as the best way to convert int to string, not basic type casting, but converting to the english word the int represents. Something like this:

Re: [PHP] int to string

2006-04-05 Thread Philip Hallstrom
I don't think it's built in, so I was wondering ya'll would recommend as the best way to convert int to string, not basic type casting, but converting to the english word the int represents. Something like this: 5 = Five or 20 = Twenty If you wanted a full solution (well maybe, I didn't read

Re: [PHP] int to string

2006-04-05 Thread Robert Cummings
On Wed, 2006-04-05 at 21:27, Philip Hallstrom wrote: I don't think it's built in, so I was wondering ya'll would recommend as the best way to convert int to string, not basic type casting, but converting to the english word the int represents. Something like this: 5 = Five or 20 =