【发布时间】:2013-01-21 01:36:27
【问题描述】:
可能重复:
Is there an easy way to convert a number to a word in PHP?
我想问一下,比如有一个价格为110 000的数字格式,结果转换为字符串为“十万”。 php的编码如何?
例如。
$price = 110000;
$price_string = "one hundred and ten thousand"
请帮助我。谢谢你
【问题讨论】:
-
谷歌快速搜索找到了这个类:jaygilford.com/php/number-to-text-converting-php-class,试试看?