Last active
October 6, 2016 07:17
-
-
Save gromdron/57060658f1158e387e6f47102bf6a7c6 to your computer and use it in GitHub Desktop.
bitrix:translit для полного текста, а не 100 символов
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
function translit($string) { | |
$trans = \CUtil::translit($string,"ru", [ | |
'max_len' => strlen($string) | |
]); | |
return $trans; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment