我在money_format上使用第一个参数’%n’来包含美元符号,我将语言环境设置为en_US但它仍然不包含它.为什么?
从
PHP.net comment:
原文链接:https://www.f2er.com/php/130426.htmlIf 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.