In the code like this:
<?php $a = 'абв'; for($i = 0; $i < strlen($a); $i++) { echo $a[$i]>>6, ' '; } The output is 0 0 0 0 0 0, which is not what is expected. The expected output is values 3 and 2, depending on whether we are in a beginning or the end of the UTF-8 character.
What is a problem?