Тема: Кирилицю в латинь
Функція яка міняє букви кирилиці на латинські букви
function CyrillicToLatin($str)
{
$tr = array(
"А"=>"A","Б"=>"B","В"=>"V","Г"=>"G",
"Д"=>"D","Е"=>"E","Ж"=>"J","З"=>"Z","И"=>"I","І"=>"I",
"Й"=>"Y","К"=>"K","Л"=>"L","М"=>"M","Н"=>"N","Є"=>"YE",
"О"=>"O","П"=>"P","Р"=>"R","С"=>"S","Т"=>"T","Ї"=>"YI",
"У"=>"U","Ф"=>"F","Х"=>"H","Ц"=>"TS","Ч"=>"CH",
"Ш"=>"SH","Щ"=>"SCH","Ъ"=>"","Ы"=>"YI","Ь"=>"",
"Э"=>"E","Ю"=>"YU","Я"=>"YA","а"=>"a","б"=>"b",
"в"=>"v","г"=>"g","д"=>"d","е"=>"e","ж"=>"j",
"з"=>"z","и"=>"i","й"=>"y","к"=>"k","л"=>"l","і"=>"i",
"м"=>"m","н"=>"n","о"=>"o","п"=>"p","р"=>"r","є"=>"ye",
"с"=>"s","т"=>"t","у"=>"u","ф"=>"f","х"=>"h","ї"=>"yi",
"ц"=>"ts","ч"=>"ch","ш"=>"sh","щ"=>"sch","ъ"=>"y",
"ы"=>"yi","ь"=>"","э"=>"e","ю"=>"yu","я"=>"ya"
);
return strtr($str,$tr);
}