Transliteration
transliterator_transliterate( "Any-Latin; Latin-ASCII; [\u0100-\u7fff] remove; Lower()", $text);
Links
- transliterator_transliterate[link1] -- Intl Transliterator class
- ICU Transliteration[link2] -- International Components for Unicode
Implementation
static function translit($string) { return transliterator_transliterate( "Any-Latin; Latin-ASCII; [\u0100-\u7fff] remove; Lower()", $string); }
$name = Ut::translit($name);
- [link1] https://www.php.net/manual/en/transliterator.transliterate.php
- [link2] https://unicode-org.github.io/icu/userguide/transforms/general/