I am wondering why in my local, if I input value in Money type it will display Php0.00 I want to display like $0.00
我想知道为什么在我的本地,如果我在Money类型中输入值它将显示Php0.00我想显示为$ 0.00
I tried to input value from Php0.00 to $0.00 but an error display.
我试图将值从Php0.00输入到$ 0.00,但显示错误。
maybe my setting it's default in Php, that's why I tried to changed it in setting but still does not work, any idea? thanks.
也许我设置它是Php的默认值,这就是为什么我试图在设置中更改它但仍然无效,任何想法?谢谢。
1 个解决方案
#1
PHP also has money_format().
PHP也有money_format()。
Here's an example:
这是一个例子:
echo money_format('$%i', 3.4); // echos '$3.40'
Check documentation for more...
查看文档了解更多......
#1
PHP also has money_format().
PHP也有money_format()。
Here's an example:
这是一个例子:
echo money_format('$%i', 3.4); // echos '$3.40'
Check documentation for more...
查看文档了解更多......