Hi, quick question, more of a curiosity. Is there a PHP method that has as input an int and returns the name of the number as a string value? Say, for input 0 it returns "zero", for 7 returns "seven", and so on?
Thanks
Hi, quick question, more of a curiosity. Is there a PHP method that has as input an int and returns the name of the number as a string value? Say, for input 0 it returns "zero", for 7 returns "seven", and so on?
Thanks
PHP doesn't have a built-in function for that (I think) but I found some tutorials that might help:
http://www.builderau.com.au/program/soa/Converting-numbers-to-words-in-PHP/0,339024614,339128989,00.htm
http://marc.info/?l=php-general&m=99928281523866&w=2
Next time, please have a look at Google, just search "php number to word" or something like that.
Ahh, that's the only Google search I didn't try, number to word. As I said, it was more of a curiosity. Thanks
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.