note 84160 added to function.mb-ereg-replace

From: Date: Tue, 01 Jul 2008 14:39:43 +0000
Subject: note 84160 added to function.mb-ereg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-141038@lists.php.net to get a copy of this message
If you want to replace characters like "ä" or "ø" you can use mb_ereg_replace, but it is very slow. str_replace is much faster and also works with characters like "ä" or "ø"! I think this has something to with the fact that str_replace works on byte level and does not care about characters. I hope that can help. ---- Server IP: 217.160.72.57 Probable Submitter: 217.232.104.187 ---- Manual Page -- http://www.php.net/manual/en/function.mb-ereg-replace.php Edit -- https://master.php.net/note/edit/84160 Del: integrated -- https://master.php.net/note/delete/84160/integrated Del: useless -- https://master.php.net/note/delete/84160/useless Del: bad code -- https://master.php.net/note/delete/84160/bad+code Del: spam -- https://master.php.net/note/delete/84160/spam Del: non-english -- https://master.php.net/note/delete/84160/non-english Del: in docs -- https://master.php.net/note/delete/84160/in+docs Del: other reasons-- https://master.php.net/note/delete/84160 Reject -- https://master.php.net/note/reject/84160 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141038) next »