ID: 12050
Updated by: jeroen
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: *General Issues
Operating System: Win2K, WinNT 4
PHP Version: 4.0.6
New Comment:

You're looking for str_replace, strtr is something really different.

Previous Comments:
------------------------------------------------------------------------

[2001-07-11 09:40:33] [EMAIL PROTECTED]

This is normal behavior, see www.php.net/strtr for more information.

Derick

------------------------------------------------------------------------

[2001-07-11 09:38:33] [EMAIL PROTECTED]

Hi!

with 2 parameters all work fine.

With 3 parameters function return:

Example1:

strtr("Function resut is BAD", "BAD", "all right")
Result: 'Function resut is all'

Example2:

strtr("Function resut is BAD", "BAD", "ok")
Result: 'Function resut is okD'

Example3:

strtr("Function resut is BAD", "BAD", "")
Result: 'Function resut is BAD'


Thx 4 attention


------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=12050&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to