Re: [PHP-DEV] Bug with str_replace

2021-05-25 Thread Nikita Popov
On Tue, May 25, 2021 at 12:13 PM Eugene Sidelnyk wrote: > When use str_replace with arrays there's strange behavior > > https://3v4l.org/maNqa > > > ```php > var_dump(str_replace( > [ > ',', > '.', > ],[ > '.', >

[PHP-DEV] Bug with str_replace

2021-05-25 Thread Eugene Sidelnyk
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 expecte