1

Possible Duplicate:
Is there an easy way to convert a number to a word in PHP?

I want to ask, for example, there is a price to 110 000 the number format as the result of the conversion to a string to be "one hundred and ten thousand". how the coding for php?

eg.

  $price = 110000;
  $price_string = "one hundred and ten thousand"

please help me. thank you

Community
  • 1
  • 1
ramadani
  • 449
  • 2
  • 6
  • 25
  • 1
    A quick google search found this class: http://www.jaygilford.com/php/number-to-text-converting-php-class/, try it? – Tim Joyce Jan 21 '13 at 01:40

1 Answers1

0

You could use this library, for example. Or this code snippet if you don't want to add external code into your project.

Tommaso Belluzzo
  • 23,232
  • 8
  • 74
  • 98