Transliteration

transliterator_transliterate(
	"Any-Latin;
	Latin-ASCII;
	[\u0100-\u7fff] remove;
	Lower()",
	$text);

Links

  1. transliterator_transliterate — Intl Transliterator class
  2. ICU Transliteration — 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);