- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
function translit ($out='') {
$out = iconv('UTF-8', 'CP1251', $out);
$eval = '
$out = strtr($out,
"абвгдезийклмнопрстуфхцыэАБВГДЕЗИЙКЛМНОПРСТУФХЦЫЭ№",
"abvgdezijklmnoprstufhcieABVGDEZIJKLMNOPRSTUFHCIE#"
);
$out = strtr($out, array(
"ё"=>"yo", "ж"=>"zh", "ч"=>"ch", "ш"=>"sh", "щ"=>"shh", "ъ"=>"``", "ь"=>"`", "ю"=>"yu", "я"=>"ya",
"Ё"=>"Yo", "Ж"=>"Zh", "Ч"=>"Ch", "Ш"=>"Sh", "Щ"=>"Shh", "Ъ"=>"``", "Ь"=>"`", "Ю"=>"Yu", "Я"=>"Ya"
));
';
$eval = iconv('UTF-8', 'CP1251', $eval);
eval ($eval);
return iconv('CP1251', 'UTF-8', $out);
}