WackoWiki: Transliteration

https://wackowiki.org/doc     Version: 11 (07.12.2021 19:39)

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);