Re: Changed behaviour for strtr()
| From: | Gustavo Lopes | Date: | Mon, 20 Jun 2011 17:15:15 +0000 |
| Subject: | Re: Changed behaviour for strtr() | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53434@lists.php.net to get a copy of this message | ||
Em Mon, 20 Jun 2011 12:32:30 +0100, Robert Eisele <robert@xarg.org> escreveu:
$demise = strtr("passion", "os", "");This is a very bad idea for several reasons: - strtr already does this with: $demise = strtr("passion", array("o" => "", "s" => "")); - it's a BC break - adds a *third* operation mode to strtr, which (IMO unwisely) already provides two completely different algorithms. -- Gustavo Lopes