|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-03-04 02:25 UTC] davidlbarber at home dot comEch
<?php echo "Some String \n" echo "Some more String \n" ?> I expected this output: Some String Some more String But I'm getting this output: Some StringSome more String No new line is being forced. The problem also occurs with PRINT as well as ECHO. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 20:00:01 2025 UTC |
I also do not get a new line using this: <?php echo('<BR>Number of \r\nrecords f\rou\nnd: '.$counter); ?> Yes, I am looking at this in a browser. Is there maybe a configuration setting not allowing this?To print a newline in the browser ad a <p> tag to create a new paragraph. Like this: echo ("<p>The sql is: ".$sql); You can close it too if you like.... echo("</p>");