Search code examples
zend-framework2localenumber-formatting

Number Normalization for 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

Is there an equivalent in ZF2 to the ZF1 Zend_Locale_Format::getNumber?

Thanks in advance

Aborgrove.


Solution

  • You mean something like the numberFormat Filter?