Re: Re: Probs with \n
| From: | Stephen | Date: | Tue, 13 May 2003 19:46:14 +0000 |
| Subject: | Re: Re: Probs with \n | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-19902@lists.php.net to get a copy of this message | ||
Your PHP is fine. However, the browser by default does not show \n
characters. If you want it to show \n, you must use <pre> and </pre> before
and after the text with the \n. Personally, I recommend just replacing \n
with <br>.
Devo
PS: If you view the source of your php file, you will see the text as you
expected. Its just browsers ignore it :-(
----- Original Message -----
From: "DvDmanDT" <dvdmandt@telia.com>
To: <php-windows@lists.php.net>
Sent: Tuesday, May 13, 2003 8:58 PM
Subject: [PHP-WIN] Re: Probs with \n
> Try <br>\n...
> "Oliver Steimer" <oliver.steimer@mbos.de> skrev i meddelandet
> news:20030513190238.15153.qmail@pb1.pair.com...
> > hi ... i´m beginn php programminganhave a problem with the "\n"
> >
> > when i try this - echo "hier sollte ein Umbruch sein\n so ist es"
> > i thouhgt my webbrowser should show it like this
> >
> > hiersollteeinUmbruch sein
> > so ist es
> >
> > but it´s all in one line !!
> > Where is my mistake ??
> >
> > Greetings from germany
> > Oliver
> >
> >
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>