Jump to content

Getting character of a string


fluidsharp

Recommended Posts

Hello guys!

I don't understand why when I get Cyrillic character from string - happens smth. wrong.

For example :

$str = "МУГдй"; if I echo  it all is good.

But when I do it: $str1 = $str[2]; it will output Roman character or " in phpED and in firefox fffd.

 

Thanks you in advance.

Link to comment
https://forums.phpfreaks.com/topic/202230-getting-character-of-a-string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.