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
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:
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
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:
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.
?
/**
**
**
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.
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
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.
-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
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:
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
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 =
12 matches
Mail list logo