#36560 [Opn->Bgs]: [chm] bug on function.str-replace.html
| From: | bjori@php.net | Date: | Tue, 28 Feb 2006 16:03:31 +0000 |
| Subject: | #36560 [Opn->Bgs]: [chm] bug on function.str-replace.html | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93766@lists.php.net to get a copy of this message | ||
ID: 36560
Updated by: bjori@php.net
Reported By: gruja at phy dot bg dot ac dot yu
-Status: Open
+Status: Bogus
Bug Type: Strings related
Operating System: windows
PHP Version: 5.1.2
New Comment:
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
Windows uses \r\n not \n
Previous Comments:
------------------------------------------------------------------------
[2006-02-28 16:50:37] gruja at phy dot bg dot ac dot yu
Description:
------------
I have found a bug on page function.str-replace.html
[chm date: 2005-05-20]...
When I wish to replace new line character it does insert instead.
Reproduce code:
---------------
$string="aaa
bbb";
$string=str_replace("\n", "<br>", $string);
print $string;
Expected result:
----------------
aaa<br>bbb
Actual result:
--------------
aaa
<br>bbb
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36560&edit=1