#33848 [Opn->Bgs]: New line problem
| From: | johannes@php.net | Date: | Sun, 24 Jul 2005 23:33:28 +0000 |
| Subject: | #33848 [Opn->Bgs]: New line problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82393@lists.php.net to get a copy of this message | ||
ID: 33848
Updated by: johannes@php.net
Reported By: pperna at centrum dot cz
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: Windows 2000
PHP Version: 4.3.11
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
.
Previous Comments:
------------------------------------------------------------------------
[2005-07-25 01:28:45] pperna at centrum dot cz
Description:
------------
I find out that PHP has big differencies between
" and '(on PHP website, I think). It is very important and many newbies
are very confused.I wanted to find some solution for inserting new line
into text documents produced by PHP.I found tons of questions about new
line feeds doesnt work for me.But solution is very easy.
YOU HAVE TO DO : $output = "text\r\n";
INSTEAD OF $output = 'text\r\n';
Reproduce code:
---------------
$output2 = 'textfirst\r\ntextsecond';
Expected result:
----------------
textfirst
textsecond
Actual result:
--------------
textfirsttextsecond
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33848&edit=1