Re: Beginners question
| From: | Paul Roberts | Date: | Sun, 09 Feb 2003 20:23:42 +0000 |
| Subject: | Re: Beginners question | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134967@lists.php.net to get a copy of this message | ||
use html <br> instead of \n
or
echo nl2br("This spans\nmultiple lines. The newlines will be\noutput as
well.");
Best Wishes
Paul Roberts
mail@paul-roberts.com
++++++++++++++++++++++++
----- Original Message -----
From: "Martin Purdy" <martin@purdy.com>
To: <php-general@lists.php.net>
Sent: Sunday, February 09, 2003 8:16 PM
Subject: Re: [PHP] Beginners question
How do you use the output on a webpage then?
Martin
"Leif K-Brooks" <eurleif@buyer-brokerage.com> skrev i en meddelelse
news:3E469B6C.4000807@buyer-brokerage.com...
> My guess is that the new lines are there, but since you're (most likely)
> outputting HTML, you don't see them. Take at look at the br HTML tag.
>
> Martin Purdy wrote:
>
> >Hi everybody
> >
> >I am totally new to PHP, and I have a problem with the Print statement.
> >When I send a newline using "\n" nothing happens.
> >
> >I cannot get any linebreaks into my code.
> >
> >The following line is copied from the PHP Manual, and is sopposed to
> give me
> >the text split into 3 lines, but they come out as one line.
> >
> > echo "This spans\nmultiple lines. The newlines will be\noutput as
> >well.";
> >
> >Can someone please tell me what I am doing wrong?
> >
> >Martin Purdy
> >
> >
> >
> >
> >
>
> --
> The above message is encrypted with double rot13 encoding. Any
> unauthorized attempt to decrypt it will be prosecuted to the full extent
> of the law.
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php