Re: Beginner's attempt fails
| From: | David Robley | Date: | Wed, 18 Oct 2000 01:04:11 +0000 |
| Subject: | Re: Beginner's attempt fails | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20746@lists.php.net to get a copy of this message | ||
On Wed, 18 Oct 2000, Michael Talbot-Wilson wrote:
> Everyone, thanks for your help. Yes, I understand now. When I
> "View Page Source" in Netscape the newlines are there.
>
> So, I'm not totally clear on the usefulness of '\n' anyway, in
> PHP, unless it's in a PRE block. Presumbly in this case the
> result would be the same (with <br/>) with or without the '\n'.
>
> --Mike
It can be very useful for displaying your source neatly, particularly when
you need to refer to the source to track down a problem with, say, table
layout that is produced from PHP output.
As you have seen already, checking the source as well as the display can
give you an idea of what's going on/wrong.
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA