Zend 货币上的数字格式
我正在开发一个基于 Zend 的网站,但有以下问题:
$currency = new Zend_Currency();
$currency->toCurrency(20, array('currency' => 'EUR','number_format' => '#0.#'));
给我 20,00 EUR
但我需要 20.00 EUR
(这就是我设置 number_format 的原因),任何建议?
I am developing a site Zend based but I have the followin problem:
$currency = new Zend_Currency();
$currency->toCurrency(20, array('currency' => 'EUR','number_format' => '#0.#'));
Gives me 20,00 EUR
but I need 20.00 EUR
(that is why i set number_format), Any suggestion?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试将
number_format
更改为 格式 。Try changing
number_format
to just format.