When use str_replace with arrays there's strange behavior https://3v4l.org/maNqa
```php var_dump(str_replace( [ ',', '.', ],[ '.', ',', ], '1.2,3' )); ``` This code is expected to replace all commas with dots and all dots with commas, however in result we get all commas.