- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
function toCyrillicTranslit($title)
{
$title = trim($title);
$title = str_replace("À", "А", $title);
$title = str_replace("Á", "А", $title);
$title = str_replace("Â", "А", $title);
$title = str_replace("Ã", "А", $title);
$title = str_replace("Ä", "А", $title);
$title = str_replace("Å", "А", $title);
$title = str_replace("Æ", "А", $title);
$title = str_replace("Ç", "С", $title);
$title = str_replace("È", "Е", $title);
$title = str_replace("É", "Е", $title);
$title = str_replace("Ê", "Е", $title);
$title = str_replace("Ë", "Е", $title);
$title = str_replace("Ì", "И", $title);
$title = str_replace("Í", "И", $title);
$title = str_replace("Î", "И", $title);
$title = str_replace("Ï", "И", $title);
$title = str_replace("Ð", "Д", $title);
$title = str_replace("Ñ", "Н", $title);
$title = str_replace("Ò", "О", $title);
$title = str_replace("Ó", "О", $title);
$title = str_replace("Ô", "О", $title);
$title = str_replace("Õ", "О", $title);
$title = str_replace("Ö", "О", $title);
$title = str_replace("×", "х", $title);
$title = str_replace("Ø", "О", $title);
$title = str_replace("Ù", "У", $title);
$title = str_replace("Ú", "У", $title);
$title = str_replace("Û", "У", $title);
$title = str_replace("Ü", "У", $title);
$title = str_replace("Ý", "У", $title);
$title = str_replace("Þ", "П", $title);
// и так далее ...
TheHamstertamer 02.11.2011 16:51 # 0
ling 02.11.2011 16:57 # +3
dev6alexander 03.11.2011 09:08 # 0
$search= array("À", "Á", "Â", "etc");
$replace= array("А", "A", "A", "etc");
return str_replace($search, $replace, $phrase);
А вообщ, как-то стремно выглядит
NemoReturns 05.11.2011 22:18 # 0
Zerstoren 04.11.2011 23:50 # 0
*Грустит =(
Vasiliy 05.11.2011 18:07 # −1
anmiles 06.11.2011 19:34 # 0
guest8 09.04.2019 11:53 # −999