简体   繁体   中英

how to convert number into string

I was wondering if its possible to convert a number into a string using php? Let's say I want to convert "25,435" into twenty five thousand four hundred thirty five.

Any idea how?

There's nothing in PHP by default to do this, but you can quite easily find something by Googling for "PHP number to word".

http://www.krishnasrikanth.com/portfolio/works.php?app=numbwordter

http://www.phpro.org/examples/Convert-Numbers-to-Words.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM