note 50532 added to function.strtr
| From: | Stian at osu1 dot php dot net | Date: | Wed, 02 Mar 2005 21:58:05 +0000 |
| Subject: | note 50532 added to function.strtr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85822@lists.php.net to get a copy of this message | ||
elonen forgot the ø character (\xf8)
A (more) complete accent remover:
$txt = strtr($txt,
"\xe1\xc1\xe0\xc0\xe2\xc2\xe4\xc4\xe3\xc3\xe5\xc5".
"\xaa\xe7\xc7\xe9\xc9\xe8\xc8\xea\xca\xeb\xcb\xed".
"\xcd\xec\xcc\xee\xce\xef\xcf\xf1\xd1\xf3\xd3\xf2".
"\xd2\xf4\xd4\xf6\xd6\xf5\xd5\x8\xd8\xba\xf0\xfa\xda".
"\xf9\xd9\xfb\xdb\xfc\xdc\xfd\xdd\xff\xe6\xc6\xdf\xf8",
"aAaAaAaAaAaAacCeEeEeEeEiIiIiIiInNo".
"OoOoOoOoOoOoouUuUuUuUyYyaAso");
----
Manual Page -- http://www.php.net/manual/en/function.strtr.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50532
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50532&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50532&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50532&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50532&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50532&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50532&report=yes
Search -- http://master.php.net/manage/user-notes.php