Think of it this way: creates a line break in HTML Output, \n creates a line
break in HTML Code.
echo "I really\n like\n PHP!";
HTML Code:
I really
like
PHP!
HTML Output:
I really like PHP!
HTH
>>>It seems that i have a very silly problem.
I can't get the new line escape character to
I often use: \n
That way I get a new line in a browser and plain text as well.
KK Lee <[EMAIL PROTECTED]> wrote: Dear ALL,
It seems that i have a very silly problem.
I can't get the new line escape character to work.
the following is my SIMPLE script and corresponding output.
PHP script:
nl2br()
KK Lee wrote:
> **
> This Message Was Virus Checked With : SAVI 3.59 May 2002
> Last Updated 8th July 2002
> **
>
> Dear ALL,
>
> It seems tha
Hello KK,
Monday, July 22, 2002, 9:00:47 PM, you wrote:
KL> Dear ALL,
KL> It seems that i have a very silly problem.
KL> I can't get the new line escape character to work.
KL> the following is my SIMPLE script and corresponding output.
KL> PHP script:
KL> "-//W3C//DTD HTML 4.0 Transitiona
PROTECTED]
Subject: [PHP] Newbie's question about \n
Dear ALL,
It seems that i have a very silly problem.
I can't get the new line escape character to work.
the following is my SIMPLE script and corresponding output.
PHP script:
http://www.w3.org/TR/html4/loose.dtd"; >
TEST
Dear ALL,
It seems that i have a very silly problem.
I can't get the new line escape character to work.
the following is my SIMPLE script and corresponding output.
PHP script:
http://www.w3.org/TR/html4/loose.dtd"; >
TEST
Output in IE6:
this should be printed out: this is a second
6 matches
Mail list logo