note 50365 added to function.strtr

From: Date: Fri, 25 Feb 2005 20:24:41 +0000
Subject: note 50365 added to function.strtr
Groups: php.notes 
Request: Send a blank email to php-notes+get-85548@lists.php.net to get a copy of this message
Yet another accent remover, this time pretty complete and without any 8-bit characters in the script itself: $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", "aAaAaAaAaAaAacCeEeEeEeEiIiIiIiInNoOoOoOoOoOoOoouUuUuUuUyYyaAs"); ---- Manual Page -- http://www.php.net/manual/en/function.strtr.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50365 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50365&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50365&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50365&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50365&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50365&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50365&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85548) next »