Note: I think I know that maybe wrong, so please please let me know Correct :) I used the I did not expect to do this work, but did it. I always thought that PHP has considered a byte as a character, so you should use I thought the Russian letter would take & gt; 1 byte each. I thought I thought Where and how am I wrong? Give me as much detail as you can :) This works by making text less case by passing it locale For libc functions which are dependent on settings; Appropriate settings mean that the text will lessen the case properly if the correct charset is used for byte.
str_ireplace ('Ð ?? оР»Ð³Ð¾Ð³Ñ ?? Ð ° Ð' ',' ', $ a) Recommended to .
mb_ * to get accurate results when using characters outside the ASCII range Function for
str_replace () will work because the bytes can be matched even if they are multibyte or not, as long as they are in order.
str_ireplace () would not work not because PHP does not know how to map non ASCII characters to their alternative case equivalents. But, it did done work.
Comments
Post a Comment