Пытаюсь вывести
Код: Выделить всё
use yii\helpers\Inflector;
....
echo Inflector::slug('фыфывфыв','-');
Код: Выделить всё
use yii\helpers\Inflector;
....
echo Inflector::slug('фыфывфыв','-');
Спасибо.
Код: Выделить всё
* 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 function transliterate($string, $transliterator = null)
{
if (static::hasIntl()) {
if ($transliterator === null) {
$transliterator = static::$transliterator;
}
return transliterator_transliterate($transliterator, $string);
}
return strtr($string, static::$transliteration);
}