Created
February 8, 2013 00:15
-
-
Save donaldallen/4735483 to your computer and use it in GitHub Desktop.
PHP NumberFormatter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$f = new NumberFormatter("en", NumberFormatter::SPELLOUT); | |
echo $f->format(123456); | |
// returns "one hundred twenty-three thousand four hundred fifty-six" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment