Last active
April 2, 2016 14:17
-
-
Save YuriDan/6990228 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$str = "Создание символьного кода через API"; | |
$arParams = array( | |
"max_len" => 255, //Максимальная длина строки | |
"change_case" => false, //Привести к регистру: false - оставить как есть, U - к верхнему, L - к нижнему | |
"replace_space" => '-', //Символ замены пробела | |
"replace_other" => '-', //Символ замены остальных символов | |
"delete_repeat_replace" => true //Удалить лишние символы замены | |
); | |
$code = CUtil::translit($str, "ru", $arParams ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment