note 28836 added to function.strtr
| From: | Chronial at web dot de | Date: | Sat, 25 Jan 2003 11:49:39 +0000 |
| Subject: | note 28836 added to function.strtr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42724@lists.php.net to get a copy of this message | ||
hi!
I just found out something very interresting:
It looks like str_replace with array arguments is much faster than strtr with array arguments. I
didn't yet have enough time to test this exactly, but maybe you would like to know.
But I think this is just logical, because str_replace is binary save, and strtr isn't.
--
http://www.php.net/manual/en/function.strtr.php
http://master.php.net/manage/user-notes.php?action=edit+28836
http://master.php.net/manage/user-notes.php?action=delete+28836
http://master.php.net/manage/user-notes.php?action=reject+28836