note 14444 deleted from function.strtr by felipe
| From: | felipe@php.net | Date: | Sat, 29 Dec 2007 21:52:29 +0000 |
| Subject: | note 14444 deleted from function.strtr by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134253@lists.php.net to get a copy of this message | ||
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");
}