transliterate() public static method (available since version 2.0.7)
Returns transliterated version of a string.
If intl extension isn't available uses fallback that converts latin characters only and removes the rest. You may customize characters map via $transliteration property of the helper.
public static string transliterate ( $string, $transliterator = null ) | ||
---|---|---|
$string | string |
Input string |
$transliterator | string|\Transliterator |
Either a \yii\helpers\Transliterator or a string from which a \yii\helpers\Transliterator can be built. |
Please login to continue.