Re: print_r question
| From: | jimw at apache dot org | Date: | Thu, 23 Aug 2001 22:08:50 +0000 |
| Subject: | Re: print_r question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64177@lists.php.net to get a copy of this message | ||
James <james@scgdev.com> wrote:
> When I print an array out with print_r (php 4.06 on IIS 4.0) it does not
> print newlines even if newlines are embedded in the array element. I must
> embed <br>, instead.
it probably is printing the newlines, but in html, newlines are
treated like any other whitespace, and do not always cause a new line.
you can wrap your output in "<pre></pre>" to preserve the newlines.
jim