Re: PHP 4.0 Bug #2194: newline character ( \n ) ignored/treated as a single space
| From: | Mark Musone | Date: | Mon, 30 Aug 1999 18:45:52 +0000 |
| Subject: | Re: PHP 4.0 Bug #2194: newline character ( \n ) ignored/treated as a single space | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-10358@lists.php.net to get a copy of this message | ||
You are outputting HTML. new lines are eaten up in HTML.
the proper HTML tag to make a newline is <br>.
MArk
>
> From: jkjome@creativeis.com
> 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@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>