helpers\BaseInflector transliterate()

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.

doc_Yii
2016-10-30 17:05:25
Comments
Leave a Comment

Please login to continue.