Welcome to WebmasterWorld Guest from 54.158.10.156

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Script to convert figure into letters

     
11:28 am on Jun 9, 2012 (gmt 0)

Full Member

5+ Year Member

joined:Dec 12, 2007
posts:233
votes: 0


Hi,
Does someone has a PHP program that can help me to convert a bill's amount into letters to show a client the amount he's paying in full letters?

Thank you for your help
3:53 pm on June 9, 2012 (gmt 0)

Administrator from US 

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 25, 2005
posts:14650
votes: 94


full letters?


Huh what?

Are are saying formatted money like "$10.00" or what?

If so, try the function money_format().
3:59 pm on June 9, 2012 (gmt 0)

Full Member

10+ Year Member

joined:Jan 2, 2005
posts:333
votes: 0


I think dbarasuk means;

1000 --> "Thousand", etc.

A quick search on this reveals quite a few simple ready made functions for this.
4:11 pm on June 9, 2012 (gmt 0)

Administrator from US 

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 25, 2005
posts:14650
votes: 94


Ah, money as words, gotcha.

Simple class for that over here: [bloople.net...]