note 14444 deleted from function.strtr by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: JamesHeinrich at Technologist dot com 

----

To build on the provided example, this small function will translate all accented characters into non-accented ones:

function removeaccents($string) {
 return strtr($string, "ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ", "SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy");
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.