Так, народ, зацените фишку:
$str = "HiK";
$str2 = "НiK";
function foo($str){
$str = str_replace("а", "a", $str);
$str = str_replace("А", "A", $str);
$str = str_replace("В", "B", $str);
$str = str_replace("Е", "E", $str);
$str = str_replace("е", "e", $str);
$str = str_replace("У", "Y", $str);
$str = str_replace("у", "y", $str);
$str = str_replace("Р", "P", $str);
$str = str_replace("р", "p", $str);
$str = str_replace("О", "O", $str);
$str = str_replace("о", "o", $str);
$str = str_replace("С", "C", $str);
$str = str_replace("с", "c", $str);
$str = str_replace("Т", "T", $str);
$str = str_replace("М", "M", $str);
$str = str_replace("К", "K", $str);
$str = str_replace("Н", "H", $str);
return $str;
}
if (foo($str) == foo($str2)){
echo "Ники одинаковы!";
}
Незнаю правильно ли я сообразил...
И незнаю как это будет в плане быстродействия... Но эта операция в принцепе будет выполнятся только один раз при регистрации...