If you've ever wanted the copy on your site to read cleaner when it comes to numbers ("six hundred" versus "600") then this new article from Builder.com can help you out.
Every once in a while, the PHP PEAR repository throws up a gem. This one's for anyone who's ever had to create a PHP application built around invoicing or accounting—it's called the PHP PEAR Numbers_Words class and its sole reason for existence is to help you translate integers into their spoken equivalents.
How is this useful? Well, consider the typical invoice: In addition to a description of the work done, the date, and the hourly or project cost, it always includes a total cost at the end—the amount that the customer is expected to pay. To avoid any misinterpretation of the total amount, many organizations (mine included) put the amount in both words and figures...
It's quite useful as a double-check procedure (as mentioned above), but can also your advantage when translating sites - especially since it works with multiple languages including: English (UK and US), French, Italian, Swedish, Polish among many more.
Many thanks to php|architect for the pointer...




