Php work with register Russian characters in UTF-8
Php work with register Russian characters in UTF-8
Greetings, Habr! Faced with the problem of the correct operation of the functions change the character case when dealing with Russian text in UTF-8. Here is a function to which I came. It works, but, IMHO, it looks very ugly:
function reverseStringCharactersCase($string){ $reversedString = ''''; $string = iconv(''UTF-8'', ''cp1251'', $string); for ($i = 0; $i < strlen($string); $i++) { if…
View On WordPress










