Zend Framework 2的数字规范化 [英] Number Normalization for Zend Framework 2
本文介绍了Zend Framework 2的数字规范化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试从表单中规范数字,该表单将/可能采用本地数字格式.例如
I'm trying to normalize a number from a form, which will/could be in the local number format. e.g.
Locale:en-US
1,234.56 -> 1234.56
Locale:nl-NL
1.234,56 -> 1234.56
ZF2中有与ZF1 Zend_Locale_Format :: getNumber
等效的东西吗?
Is there an equivalent in ZF2 to the ZF1 Zend_Locale_Format::getNumber
?
预先感谢
Aborgrove.
Aborgrove.
推荐答案
您的意思是 查看全文