Em Mon, 20 Jun 2011 12:32:30 +0100, Robert Eisele <rob...@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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to