|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-28 17:50 UTC] salathe@php.net
[2010-05-28 18:02 UTC] salathe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: salathe
[2010-05-28 18:02 UTC] salathe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 06:00:01 2026 UTC |
Description: ------------ If strtr(string $str, array $replace_pairs) is called and one of the keys of $replace_pairs is an empty string, strtr will return the boolean value FALSE. This is not reflected in the documentation. Test script: --------------- <?php var_dump(strtr('foo', array('' => 'nothing'))); Expected result: ---------------- Unsure, is the empty string ever really "found" in a string? Actual result: -------------- bool(false)