How to compare UTF-8 Strings in PHP?

by barkkathulla 2013-09-07 12:14:32



1.First need to convert both strings to ASCIi using iconv()
2.The //TRANSLIT option to get rid of accented characters

The format is given by,

$myword = iconv('utf-8', 'ascii//TRANSLIT', $myword);

Then do the comparison

994
like
0
dislike
0
mail
flag

You must LOGIN to add comments