|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-09-18 14:20 UTC] 1234ru at gmail dot com
Description: ------------ In other words, it simply ignores case-insensitive replacement when dealing with any letters except Latin. Not a single word in the documentation at http://php.net/str_ireplace covers the issue. And there is no corresponding mb* function. Test script: --------------- echo str_ireplace("б", "1", "111ббб"); // russian letters in UTF-8 encoding Expected result: ---------------- 111111 Actual result: -------------- 111ббб PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 03:00:01 2025 UTC |
An actual example is this: echo str_ireplace("Б", "1", "БББббб"); // yelds 111ббб instead of 111111 (It doesn't allow me to edit the bug description so I post it as a comment.)