ID: 33848 Updated by: [EMAIL PROTECTED] 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