Re: Changed behaviour for strtr()
| From: | Derick Rethans | Date: | Tue, 21 Jun 2011 10:55:30 +0000 |
| Subject: | Re: Changed behaviour for strtr() | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53471@lists.php.net to get a copy of this message | ||
On Mon, 20 Jun 2011, Stas Malyshev wrote:
> > 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.
>
> This is a BC break, if I understand it correctly, so I don't think it is a
> good idea.
I agree that this is not a good thing then.
cheers,
Derick