ID: 2194
Comment by: lmohr at eatoncounty dot org
Reported By: jkjome at creativeis dot com
Status: Closed
Bug Type: Other
Operating System: NT4
PHP Version: 4.0 Beta 2
New Comment:
test
new
line
Previous Comments:
------------------------------------------------------------------------
[1999-08-30 15:07:14] eschmid at cvs dot php dot net
You are outputting HTML. new lines are eaten up in HTML.
the proper HTML tag to make a newline is <br>.
Mark
Bug closed by
-Egon
------------------------------------------------------------------------
[1999-08-30 13:10:10] jkjome at creativeis dot com
Here is an example:
<?php for ($i = 4; $i < 8; $i++) {
print "I have eaten $i bagels today.\n";}
?>
Even with the newline character there, no new line is generated in the
output. As you can see, this happens with print, but it also happens
with printf and echo.
The only thing it does is add a single space where it should have been
a new-line.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=2194&edit=1