ID:               21818
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Strings related
 Operating System: Mandrake 8
 PHP Version:      4.2.3
 New Comment:

hu ho what a mistake
thank's


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

[2003-01-22 14:47:14] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

You are not specifying the array correctly.
it should be array('#' => '\#');

Otherwise it uses numeric keys for each array element 0 for # and 1 for
\#. Meaning that all 0s will be replaced with '#' and all 1s will be
replaced with \#.

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

[2003-01-22 08:56:55] [EMAIL PROTECTED]

on freeBSD I observed the same issue

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

[2003-01-22 08:53:49] [EMAIL PROTECTED]

when i execute this expression,

echo $val=strtr('1',array('"','\"'));

i obtain the following result :

\"

infact of 1

i try to make this operation with some other number but the problème
seems appear only with the string '1'

PS: sorry for my poor english

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


-- 
Edit this bug report at http://bugs.php.net/?id=21818&edit=1

Reply via email to