dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: displaying a digit as text

  1. #1
    Join Date
    Dec 2004
    Posts
    439

    displaying a digit as text

    Hi. Is there a built in php function that will display a digit as text, like this:

    1 would print "one"

    1000 would print "one-thousand"

    123,458 would print as one-hundred thousand, four hundred and fifty eight.

    Thanks.

  2. #2
    Join Date
    Oct 2005
    Location
    California
    Posts
    603
    Not sure about a premade function, but check out the second entry on this link:

    http://www.php.net/manual/en/function.number-format.php

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles