View file functions.php

File size: 3.04Kb
<?php
function latrus($string)
{
$string = str_replace("j","ж",$string);
$string = str_replace("J","Ж",$string);
$string = str_replace("yo","ё",$string);
$string = str_replace("YO","Ё",$string);
$string = str_replace("Yo","Ё",$string);
$string = str_replace("YU","Ю",$string);
$string = str_replace("Yu","Ю",$string);
$string = str_replace("SHC","Щ",$string);
$string = str_replace("SHc","Щ",$string);
$string = str_replace("Shc","Щ",$string);
$string = str_replace("shc","щ",$string);
$string = str_replace("yu","ю",$string);
$string = str_replace("sh","ш",$string);
$string = str_replace("ye","э",$string);
$string = str_replace("ya","я",$string);
$string = str_replace("SH","Ш",$string);
$string = str_replace("Sh","Ш",$string);
$string = str_replace("CH","Ч",$string);
$string = str_replace("Ch","Ч",$string);
$string = str_replace("ch","ч",$string);
$string = str_replace("''''","Ь",$string);
$string = str_replace("YA","Я",$string);
$string = str_replace("Ya","Я",$string);
$string = str_replace("YE","Э",$string);
$string = str_replace("Ye","Э",$string);
$string = str_replace("i","и",$string);
$string = str_replace("''","ь",$string);
$string = str_replace("c","ц",$string);
$string = str_replace("u","у",$string);
$string = str_replace("k","к",$string);
$string = str_replace("e","е",$string);
$string = str_replace("n","н",$string);
$string = str_replace("g","г",$string);
$string = str_replace("z","з",$string);
$string = str_replace("h","х",$string);
$string = str_replace('""','Ъ',$string);
$string = str_replace('"','ъ',$string);
$string = str_replace("f","ф",$string);
$string = str_replace("x","ы",$string);
$string = str_replace("v","в",$string);
$string = str_replace("a","а",$string);
$string = str_replace("p","п",$string);
$string = str_replace("r","р",$string);
$string = str_replace("o","о",$string);
$string = str_replace("l","л",$string);
$string = str_replace("d","д",$string);
$string = str_replace("s","с",$string);
$string = str_replace("m","м",$string);
$string = str_replace("t","т",$string);
$string = str_replace("b","б",$string);
$string = str_replace("Y","Й",$string);
$string = str_replace("C","Ц",$string);
$string = str_replace("U","У",$string);
$string = str_replace("K","К",$string);
$string = str_replace("E","Е",$string);
$string = str_replace("N","Н",$string);
$string = str_replace("G","Г",$string);
$string = str_replace("Z","З",$string);
$string = str_replace("H","Х",$string);
$string = str_replace("F","Ф",$string);
$string = str_replace("X","Ы",$string);
$string = str_replace("V","В",$string);
$string = str_replace("A","А",$string);
$string = str_replace("P","П",$string);
$string = str_replace("R","Р",$string);
$string = str_replace("O","О",$string);
$string = str_replace("L","Л",$string);
$string = str_replace("D","Д",$string);
$string = str_replace("y","й",$string);
$string = str_replace("S","С",$string);
$string = str_replace("M","М",$string);
$string = str_replace("I","И",$string);
$string = str_replace("T","Т",$string);
$string = str_replace("B","Б",$string);
return $string;
}
?>