I have an input which get validated localized with float validator. How can I normalize the value via filter to store in a table which has always the same format?
Not sure if this is what you want. You can use a callback filter to make 5,85 to 5.85.
array(
'name' => 'Callback',
'options' => array(
'callback' => function($value) {
return str_replace(',', '.', $value);
},
),
),
You can modify it to your needs.
NumberFormat might be useful as it includes logic for internationalization
$filter = new \Zend\I18n\Filter\NumberFormat("de_DE");
echo $filter->filter(1234567.8912346);
// Returns "1.234.567,891"