I would like to know is there anyway to check two strings are similar or not. My strings have same but difference in byte length and urlencodde .
$unit1 = '㎏';
$unit2 = 'kg';
strlen($unit1); // 3
strlen($unit2); // 2
urlencode($unit1); // %E3%8E%8F
urlencode($unit2); // kg