||09-01-2004 10:03 AM
Textual representation of numbers
I'm sure somebody somewhere must have asked this, but I cannot for the life of me find this information anywhere online. Perhaps I'm just searching wrong. Anyways, I was wondering if anyone had or knew of a function, preferably in PHP, that would give back a numerical representation of a number. Something like:
$number = 12;
$text = textual_representation($number);
Would give something like "Twelve".
I'm sure this wouldn't be too terribly difficult to invent, but if it's already there, that would be great.