1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
/** * Транслит ru => en * @param [string] $string [Строка кириллица] * @return [string] [Строка латиница] */ function translit($string) { $arTransParams = array( "max_len" => 100, "change_case" => false, "replace_space" => '_', "replace_other" => '-', "delete_repeat_replace" => true, ); $transName = CUtil::translit($string, "ru", $arTransParams); return $transName; } |