【问题标题】:how to convert currency into a string in php [duplicate]如何在php中将货币转换为字符串[重复]
【发布时间】: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"

请帮助我。谢谢你

【问题讨论】:

标签: php currency


【解决方案1】:

例如,您可以使用this library。或者 this code snippet 如果您不想在项目中添加外部代码。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-12-30
    • 2011-03-18
    • 1970-01-01
    • 2019-08-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多