No, you can output the <BR /> directly.

echo "This spans<br />multiple lines. The newlines will be<br />output as well.";


Martin Purdy wrote:

Thanks for your prompt answer.

I think that sounds very likely, but do I have to break out of PHP, and
send a <BR> every time I need to send a linefeed?

Martin Purdy

-----Oprindelig meddelelse-----
Fra: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sendt: 9. februar 2003 19:18
Til: Martin Purdy
Cc: [EMAIL PROTECTED]
Emne: Re: [PHP] Beginners question


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

Reply via email to