Re: /n not working
| From: | DvDmanDT | Date: | Sat, 27 Jul 2002 00:49:44 +0000 |
| Subject: | Re: /n not working | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157045@lists.php.net to get a copy of this message | ||
I must suggest to just add like
header("Content-Type: text/plain"); // Don't use HTML
To the top of examples like that...
--
// DvDmanDT
MSN: dvdmandt@hotmail.com
Mail: dvdmandt@telia.com
"Curt Zirzow" <curt@zirzow.dyndns.org> skrev i meddelandet
news:20030726170603.GC93518@bagend.shire...
> * Thus wrote John W. Holmes (holmes072000@charter.net):
> > Thomas Hochstetter wrote:
> > >
> > >$text = "The quick brown fox jumped over the lazy dog.";
> > >$newtext = wordwrap($text, 20);
> > >
> > >echo "$newtext\n";
> > > [...]
> >
> > HTML does not render newlines. You need to use <br />. View the source
> > of this code in your browser and you'll see everything is on it's own
line.
> >
>
> Yes the documentation is a little misleading. I'm in the process of
> getting that changed in the documentation.
>
> Curt
> --
> "I used to think I was indecisive, but now I'm not so sure."