I need compare two string. Visually they compare, but var_dump result other. Help me please.
string(8) "СИ.pdf" string(7) "CИ.pdf"
How correct compare him?
I need compare two string. Visually they compare, but var_dump result other. Help me please.
string(8) "СИ.pdf" string(7) "CИ.pdf"
How correct compare him?
Use mb_convert_encoding() to convert both versions to something reasonable (UTF8 for example) then use mb_strstr() to do the comparison.
most likely there are some non printable characters in the string
check out the following : PHP: How to remove all non printable characters in a string?