All I want is to transform '1.234,56' into '1,234.56'...
I read about using array(s) as str_replace parameter, so I did this:
$value = '1.234,56';
$replacer1 = ',';
$replacer2 = '.';
echo \str_replace(array($replacer1, $replacer2), array($replacer2,$replacer1), $value);
//Prints '1,234,56' instead of '1,234.56'
The input and it's replacers are variable and it's not necessarily'll be used only for numbers.
Any ideas? Thanks...