Bug #9542 [Com]: \n not forcing a new line.

From: Date: Sat, 12 Feb 2011 18:56:31 +0000
Subject: Bug #9542 [Com]: \n not forcing a new line.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-158733@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=9542&edit=1

 ID:                 9542
 Comment by:         dwurry at gmail dot com
 Reported by:        davidlbarber at home dot comEch
 Summary:            \n not forcing a new line.
 Status:             Closed
 Type:               Bug
 Package:            Strings related
 Operating System:   Corel Linux 1.1.2
 PHP Version:        4.0.4pl1
 Block user comment: N
 Private report:     N

 New Comment:

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>");


Previous Comments:
------------------------------------------------------------------------
[2004-04-09 19:27:45] tomsommer@php.net

cperrywebrat at yahoo dot com:

Read the documentation,
http://php.net/manual/en/language.types.string.php

Not a bug.
Please don't comment on old and closed bugs, create a new one - after
doublechecking the manual

------------------------------------------------------------------------
[2004-04-09 16:23:15] cperrywebrat at yahoo dot com

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?

------------------------------------------------------------------------
[2001-03-04 12:10:46] cynic@php.net

are you looking at it in a browser? if so, look at the source of the
page. the newline is there. if not, reopen the report.

------------------------------------------------------------------------
[2001-03-04 02:25:12] 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.

------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=9542&edit=1


Thread (1 message)

  • dwurry at gmail dot com
  • Unknown Message
    • dwurry at gmail dot com
« previous php.bugs (#158733) next »