Forum Moderators: coopster
$englishtranslationtable = array("Á" => "a",
"Â" => "a",
"Ä" => "a",
"À" => "a",
"Å" => "a",
"Ã" => "a",
"Æ" => "ae",
"Ç" => "c",
"É" => "e",
"Ê" => "e",
"Ë" => "e",
"È" => "e",
"Ð" => "d",
"Í" => "i",
"Î" => "i",
"Ï" => "i",
"Ì" => "i",
"Ñ" => "n",
"Ó" => "o",
"Ô" => "o",
"Ö" => "o",
"Ò" => "o",
"Ø" => "o",
"Õ" => "o",
"Þ" => "p",
"Ú" => "u",
"Û" => "u",
"Ü" => "u",
"Ù" => "u",
"Ý" => "y",
"á" => "a",
"â" => "a",
"ä" => "a",
"à" => "a",
"å" => "a",
"ã" => "a",
"æ" => "ae",
"ç" => "c",
"é" => "e",
"ê" => "e",
"ë" => "e",
"è" => "e",
"ð" => "o",
"í" => "i",
"î" => "i",
"ï" => "i",
"ì" => "i",
"ñ" => "n",
"ó" => "o",
"ô" => "o",
"ö" => "o",
"ò" => "o",
"ø" => "o",
"õ" => "o",
"ß" => "b",
"þ" => "p",
"ú" => "u",
"û" => "u",
"ü" => "u",
"ù" => "u",
"ý" => "y",
"ÿ" => "y",
"Á" => "a",
"Â" => "a",
"Ä" => "a",
"À" => "a",
"Å" => "a",
"Ã" => "a",
"Æ" => "ae",
"Ç" => "c",
"&Cedil;" => "c",
"É" => "e",
"Ê" => "e",
"Ë" => "e",
"È" => "e",
"Ð" => "d",
"Í" => "i",
"Î" => "i",
"Ï" => "i",
"Ì" => "i",
"Ñ" => "n",
"Ó" => "o",
"Ô" => "o",
"Ö" => "o",
"Ò" => "o",
"Ø" => "o",
"Õ" => "o",
"Þ" => "p",
"Ú" => "u",
"Û" => "u",
"Ü" => "u",
"Ù" => "u",
"Ý" => "y",
"á" => "a",
"â" => "a",
"ä" => "a",
"à" => "a",
"å" => "a",
"ã" => "a",
"æ" => "ae",
"¸" => "c",
"ç" => "c",
"é" => "e",
"ê" => "e",
"ë" => "e",
"è" => "e",
"ð" => "o",
"í" => "i",
"î" => "i",
"ï" => "i",
"ì" => "i",
"ñ" => "n",
"ó" => "o",
"ô" => "o",
"ö" => "o",
"ò" => "o",
"ø" => "o",
"õ" => "o",
"ß" => "b",
"þ" => "p",
"ú" => "u",
"û" => "u",
"ü" => "u",
"ù" => "u",
"ý" => "y",
"ÿ" => "y");
The point of me asking was that I did not know if there was a function that did this, and I've already searched through the manual & could not find it. But thanks anyway.
As for strtr(), here's a simple example:
$simplified = strtr('áë', 'ae', $text);
<rant>What is an "English character"? a,b,c et cetera are latin characters whose origins can be traced to Syria and Palestine via the Etruscans, the Greeks and the Phoenicians. People on Great Britain were living in prehistory when the Romans started using most of the characters we're still using today. Only the w can claim an English origin: it was introduced by Norman scribes to represent the Anglo-Saxon sound [w].</rant>