PHP: Express Number in Words -



PHP: Express Number in Words -

is there function express given number in words?

for example:

if number 1432 function homecoming "one one thousand 4 hundred 30 two".

use numberformatter class in php ;)

$f = new numberformatter("en", numberformatter::spellout); echo $f->format(1432);

that output "one one thousand 4 hundred thirty-two"

php numbers words

Comments

Popular posts from this blog

Php operator `break` doesn't stop while -

ubuntu - Bash Script to Check That Files Are Being Created -

vim: Search & replace -