Super Text-to-Numbers Converter
Okay, I couldn’t find a script to do this, so I was forced to perform the horrible task of writing it myself. I needed a way to check for a valid text-number, like “one hundred twenty-three”, and convert it to digital format, as in “123”. I think it’s pretty foolproof now, although PHP’s number_format doesn’t like to work with exponential notation. So numbers below “one quadrillion” should work; numbers above will drop low digits. Not really a big deal for me. Feel free to play with it, and try to break it.
Super Text-to-Numbers Converter