PHP money_format

前端之家收集整理的这篇文章主要介绍了PHP money_format前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在money_format上使用第一个参数’%n’来包含美元符号,我将语言环境设置为en_US但它仍然不包含它.为什么?
PHP.net comment

If money_format doesn’t seem to be
working properly,make sure you are
defining a valid locale. For example,
on Debian,‘en_US’ is not a valid
locale – you need ‘en_US.UTF-8’ or
‘en_US.ISO-8559-1’.

This was frustrating me for a while. Debian has a list of valid locales at /usr/share/i18n/SUPPORTED; find yours there if it’s not working properly.

原文链接:https://www.f2er.com/php/130426.html

猜你在找的PHP相关文章