note 85556 added to function.strtr

From: Date: Fri, 05 Sep 2008 18:54:36 +0000
Subject: note 85556 added to function.strtr
Groups: php.notes 
Request: Send a blank email to php-notes+get-144171@lists.php.net to get a copy of this message
This work fine to me: function normaliza ($string){ $a = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ ßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŔŕ'; $b = 'aaaaaaaceeeeiiiidnoooooouuuuy bsaaaaaaaceeeeiiiidnoooooouuuyybyRr'; $string = utf8_decode($string); $string = strtr($string, utf8_decode($a), $b); $string = strtolower($string); return utf8_encode($string); } ---- Server IP: 200.185.126.110 Probable Submitter: 200.198.201.227 ---- Manual Page -- http://www.php.net/manual/en/function.strtr.php Edit -- https://master.php.net/note/edit/85556 Del: integrated -- https://master.php.net/note/delete/85556/integrated Del: useless -- https://master.php.net/note/delete/85556/useless Del: bad code -- https://master.php.net/note/delete/85556/bad+code Del: spam -- https://master.php.net/note/delete/85556/spam Del: non-english -- https://master.php.net/note/delete/85556/non-english Del: in docs -- https://master.php.net/note/delete/85556/in+docs Del: other reasons-- https://master.php.net/note/delete/85556 Reject -- https://master.php.net/note/reject/85556 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144171) next »