PHP: Express Number in Words [duplicate]

Use the NumberFormatter class that are in php 😉

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

That would output “one thousand four hundred thirty-two”

Leave a Comment