[PHP-DEV] PHP 4.0 Bug #2194: newline character ( \n ) ignored/treated as a single space From: jkjome <email protected>
Date: 08/30/99

From: jkjome <email protected>
Operating system: NT4
PHP version: 4.0 Beta 2
PHP Bug Type: Other
Bug description: newline character ( \n ) ignored/treated as a single space

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.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>