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”
More Related Contents:
- Increment number php every next number
- php , I want to build array from 12 values each value has max number of 2048
- Show a number to two decimal places
- Formatting a number with leading zeros in PHP [duplicate]
- Why does PHP consider 0 to be equal to a string?
- How to mathematically evaluate a string like “2-1” to produce “1”?
- Is there an easy way to convert a number to a word in PHP?
- Why is PHP printing my number in scientific notation, when I specified it as .000021?
- Display numbers with ordinal suffix in PHP
- Test if number is odd or even
- Converting words to numbers in PHP
- Remove useless zero digits from decimals in PHP
- What is the best way to validate a credit card in PHP?
- Strange behaviour with numbers that have a leading zero [duplicate]
- Round to max thousand, hundred etc in PHP
- PHP: Create an array for a range
- PHP prepend leading zero before single digit number, on-the-fly [duplicate]
- Max file number can php upload at same time
- php random x digit number
- PHP remove commas from numeric strings
- php: number only hash?
- Incrementing numbers starting from 0000 in php
- Convert number into xx.xx million format? [closed]
- check if link “still” exists [duplicate]
- the difference between unset and = null
- Setting up SSL on a local xampp/apache server
- PHP – Plus sign with GET query
- Php header location redirect not working
- Why does PHP 7.4 on Windows aborts all command line actions that require user input?
- Set httpOnly and secure on PHPSESSID cookie in PHP