Changed behaviour for strtr()
| From: | Robert Eisele | Date: | Mon, 20 Jun 2011 11:16:22 +0000 |
| Subject: | Changed behaviour for strtr() | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-53381@lists.php.net to get a copy of this message | ||
Here is the next one.
I think it's quite intuitive to use strtr() to remove single characters of a
string, too, instead of using many str_replace($str, $chr, ""). I'd glad to
see this change also in 5.4.
Additionally, I've removed the lookup-table generation as gcc doesn't
optimize this away.
Robert