note 41395 added to function.str-replace

From: Date: Thu, 08 Apr 2004 14:58:34 +0000
Subject: note 41395 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-67824@lists.php.net to get a copy of this message
I added tremas (German and Dutch) to Leif Harmsen's function: function strToNoaccents($text) { $search = array ('À', 'Á', 'Â' ,'Ã' ,'Ä' ,'Ç' ,'È' ,'É' ,'Ë' ,'Í' ,'Ï' ,'Ò' ,'Ó' ,'Ô' ,'Õ' ,'Ö' ,'Ú', 'Ü', 'ç', 'à', 'á', 'â', 'ã', 'ä', 'è', 'é', 'ê','ë', 'í', 'î', 'ï', 'ò', 'ó', 'ô', 'õ', 'ö', 'ú', 'û', 'ü'); $replace = array ('A', 'A', 'A', 'A', 'A', 'C', 'E', 'E', 'E', 'I', 'I', 'O', 'O', 'O', 'O', 'O', 'U', 'U', 'c', 'a', 'a', 'a', 'a', 'a', 'e', 'e', 'e','e', 'i', 'i', 'i', 'o', 'o', 'o', 'o', 'o', 'u', 'u', 'u'); $export = str_replace($search, $replace, $text); return $export; } ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41395 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41395&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41395&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67824) next »