|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-06 11:41 UTC] felipe@php.net
[2008-01-07 14:57 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
Description: ------------ Hello, if you try to insert a " immediately before a ' in an array then it will return strange results results. Reproduce code: --------------- <?php $image[0] = array('<img src="http://bugs.php.net/gifs/logo-bug.gif" />'); $trans4 = array('<img src="' => '', '" />' => ''); $image2 = strtr($image[0], $trans4); ?> Expected result: ---------------- http://bugs.php.net/gifs/logo-bug.gif Actual result: -------------- http://bugs.php.net/gifs/logo-bug.gif"