note 49722 added to function.strtr
| From: | patrick at p-roocks dot de | Date: | Sun, 06 Feb 2005 22:31:18 +0000 |
| Subject: | note 49722 added to function.strtr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84595@lists.php.net to get a copy of this message | ||
As Daijoubu suggested use str_replace instead of this function for large arrays/subjects. I just
tried it with a array of 60 elements, a string with 8KB length, and the execution time of
str_replace was faster at factor 20!
Patrick
----
Manual Page -- http://www.php.net/manual/en/function.strtr.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49722
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49722&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49722&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49722&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49722&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49722&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49722&report=yes
Search -- http://master.php.net/manage/user-notes.php