Re: int to string
| From: | Robert Cummings | Date: | Thu, 06 Apr 2006 01:49:35 +0000 |
| Subject: | Re: int to string | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233318@lists.php.net to get a copy of this message | ||
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 = "Twenty"
>
> If you wanted a full solution (well maybe, I didn't read it closely) I'd
> search google and take the second link.
>
> http://www.google.com/search?q=convert+number+to+words
This might be more useful, and it may even already be installed on your
system:
http://pear.php.net/package-info.php?package=Numbers_Words
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'