How to transliterate cyrillic characters into latin letters?
E.g. Главная страница -> Glavnaja stranica
This Transliteration PHP Extensi
$textcyr = 'Њушка Ћушка Љубав Ђато ђата части ';
$textlat = 'Ljubav njuška džoša Džoša';
$textlat = str_replace("nj","њ",$textlat);
$textlat = str_replace("Nj","Њ",$textlat);
$textlat = str_replace("lj","љ",$textlat);
$textlat = str_replace("Lj","Љ",$textlat);
$textlat = str_replace("dž","џ",$textlat);
$textlat = str_replace("Dž","Џ",$textlat);
$textcyr = str_replace($cyr, $lat, $textcyr);
$textlat = str_replace($lat, $cyr, $textlat);
echo $textcyr;
echo $textlat;