Просмотр файла anekdots/code.php

Размер файла: 2.45Kb
<?

function trans($text)
{
$text = str_replace("c","ц",$text);
$text = str_replace("ch","ч",$text);
$text = str_replace("w","щ",$text);
$text = str_replace("sh","ш",$text);
$text = str_replace("y","ы",$text);
$text = str_replace("ja","я",$text);
$text = str_replace("ju","ю",$text);
$text = str_replace("yo","ё",$text);
$text = str_replace("je","э",$text);
$text = str_replace("zh","ж",$text);
$text = str_replace("YO","Ё",$text);
$text = str_replace("ZH","Ж",$text);
$text = str_replace("C","Ц",$text);
$text = str_replace("CH","Ч",$text);
$text = str_replace("W'","Щ",$text);
$text = str_replace("SH","Ш",$text);
$text = str_replace("Y","Ы",$text);
$text = str_replace("JE","Э",$text);
$text = str_replace("JU","Ю",$text);
$text = str_replace("JA","Я",$text);
$text = str_replace("a","а",$text);
$text = str_replace("b","б",$text);
$text = str_replace("v","в",$text);
$text = str_replace("g","г",$text);
$text = str_replace("d","д",$text);
$text = str_replace("e","е",$text);
$text = str_replace("z","з",$text);
$text = str_replace("i","и",$text);
$text = str_replace("k","к",$text);
$text = str_replace("l","л",$text);
$text = str_replace("m","м",$text);
$text = str_replace("n","н",$text);
$text = str_replace("o","о",$text);
$text = str_replace("p","п",$text);
$text = str_replace("r","р",$text);
$text = str_replace("s","с",$text);
$text = str_replace("t","т",$text);
$text = str_replace("u","у",$text);
$text = str_replace("f","ф",$text);
$text = str_replace("h","х",$text);
$text = str_replace("q","ъ",$text);
$text = str_replace("'","ь",$text);
$text = str_replace("j","й",$text);
$text = str_replace("A","А",$text);
$text = str_replace("B","Б",$text);
$text = str_replace("V","В",$text);
$text = str_replace("G","Г",$text);
$text = str_replace("D","Д",$text);
$text = str_replace("E","Е",$text);
$text = str_replace("Z","З",$text);
$text = str_replace("I","И",$text);
$text = str_replace("J","Й",$text);
$text = str_replace("K","К",$text);
$text = str_replace("L","Л",$text);
$text = str_replace("M","М",$text);
$text = str_replace("N","Н",$text);
$text = str_replace("O","О",$text);
$text = str_replace("P","П",$text);
$text = str_replace("R","Р",$text);
$text = str_replace("S","С",$text);
$text = str_replace("T","Т",$text);
$text = str_replace("U","У",$text);
$text = str_replace("F","Ф",$text);
$text = str_replace("H","Х",$text);
$text = str_replace("Q","Ъ",$text);
$text = str_replace("'","Ь",$text);

return $text;
}
?>