tags:

views:

57

answers:

2

Possible Duplicate:
Converting a number (1, 2, 3) to a string (one, two, three) in PHP

I have a form in which products will be listed out when,i clich total chk box it will be calculated but,it will be integera only,i want this to print in words.

For eg:217 it should print in words two hundred seven only. Hope,this is clear.

Thnx in advance

+2  A: 

PEAR's Numbers Words is old, but competent.

Peter Bailey
How do,i do it?Can,you guide me.Pls
DAFFODIL
Is there any function which does this conversion job?
DAFFODIL
A: 

The duplicate question seems to answer this quite well, DAFFODIL, have a look there. You will have to have PEAR installed. Easiest way is to try Numbers_Words::toWords(200) and see if that throws up an error.

Kevin Sedgley
Thnx for u r help.
DAFFODIL
What is pear?how do i do it?
DAFFODIL
While,i tried to install pear i got this HTTP proxy (host:port) : what should i fill?
DAFFODIL
@DAFFODIL: Probably nothing.
Felix Kling