WackoWiki: Transliteration

https://wackowiki.org/doc     Version: 26.03.2020 09:18
Dev[link3]/Release[link4]/R6.0[link5]/Unicode[link6]/Transliteration
transliterator_transliterate(
	"Any-Latin;
	Latin-ASCII;
	[\u0100-\u7fff] remove;
	Lower()",
	$text);


Links
  1. transliterator_transliterate[link1] — Intl Transliterator class
  2. 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);