Aborgrove
Aborgrove

Reputation: 288

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.

Upvotes: 0

Views: 534

Answers (1)

Rufinus
Rufinus

Reputation: 30749

You mean something like the numberFormat Filter?

Upvotes: 1

Related Questions