note 84390 added to function.strtr

From: Date: Fri, 11 Jul 2008 19:04:12 +0000
Subject: note 84390 added to function.strtr
Groups: php.notes 
Request: Send a blank email to php-notes+get-141409@lists.php.net to get a copy of this message
If you try to make a strtr of not usual charafters when you are in a utf8 enviroment, you can do that: function normaliza ($string){ $string = utf8_decode($string); $string = strtr($string, utf8_decode(" ÂÊÎÔÛÀ"), "-AEIOU"); $string = strtolower($string); return $string; } ---- Server IP: 130.206.1.5 Probable Submitter: 88.148.26.94 ---- Manual Page -- http://www.php.net/manual/en/function.strtr.php Edit -- https://master.php.net/note/edit/84390 Del: integrated -- https://master.php.net/note/delete/84390/integrated Del: useless -- https://master.php.net/note/delete/84390/useless Del: bad code -- https://master.php.net/note/delete/84390/bad+code Del: spam -- https://master.php.net/note/delete/84390/spam Del: non-english -- https://master.php.net/note/delete/84390/non-english Del: in docs -- https://master.php.net/note/delete/84390/in+docs Del: other reasons-- https://master.php.net/note/delete/84390 Reject -- https://master.php.net/note/reject/84390 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141409) next »