Guys,
These codes are copied from the manual:
*
echo (this is the simplest, an SGML processing instruction\n);
echo This spans
multiple lines. The newlines will be
output as well;
echo This spans\nmultiple lines. The
At 13:22 13-10-03, you wrote:
Guys,
These codes are copied from the manual:
*
echo (this is the simplest, an SGML processing instruction\n);
echo This spans
multiple lines. The newlines will be
output as well;
echo This
It DOES work, look at the source html code.
Wang Feng wrote:
Guys,
These codes are copied from the manual:
*
echo (this is the simplest, an SGML processing instruction\n);
echo This spans
multiple lines. The newlines will be
They do work but you will not see that in the rendered html page (in a
browser). Have a look at the source of the produced page and you will see
the linebreaks.
The page source shows:
htmlbody/body/html
I suppose
Hayes [EMAIL PROTECTED]
To: Wang Feng [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, October 13, 2003 9:29 PM
Subject: Re: [PHP] \n \t don't work!!!
At 13:22 13-10-03, you wrote:
Guys,
These codes are copied from the manual:
*
echo
Wang Feng wrote:
The page source shows:
htmlbody/body/html
The problem might be right here --+
(closing html tag)|
html |
headtitleHello World
On Mon, Oct 13, 2003 at 09:48:56PM +1000, Wang Feng wrote:
:
: Ok, Now I see what happen (maybe).
:
: So, the \n is not for the browser output, but for the *view source*? So,
: it's different from the echo br?
:
: If so, what's the deal to do that? --- Makes it look nice if the user view
: the
If you want it to work with \n, then you will need to use the pre/pre
tags. Otherwise you need to translate the \n's into br tags. \n is NOT
an html tag so when you print them to the browser, it adds lines to the
source, but as you might already know, a new line in the source of an html
page
]; [EMAIL PROTECTED]
Sent: Monday, October 13, 2003 9:29 PM
Subject: Re: [PHP] \n \t don't work!!!
At 13:22 13-10-03, you wrote:
Guys,
These codes are copied from the manual:
*
echo (this is the simplest, an SGML processing instruction\n
Thank you all for pointing me to the *right* direction!!!
Now I really understand why and what I can do with the \n in php. :-)
cheers,
feng
- Original Message -
From: Eugene Lee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 13, 2003 10:58 PM
Subject: Re: [PHP] \n \t
To give tabs in html, you might want to try using nbsp; nbsp; nbsp;
instead of \t
Steve
At 06:57 AM 10/13/2003, you wrote:
Wang Feng wrote:
The page source shows:
htmlbody/body/html
The problem might be right here
[snip]
To give tabs in html, you might want to try using nbsp; nbsp; nbsp;
instead of \t
[/snip]
And one other thing I didn't see mentioned http://www.php.net/nl2br
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, Oct 13, 2003 at 08:10:39AM -0500, Jay Blanchard wrote:
:
: [snip]
: To give tabs in html, you might want to try using nbsp; nbsp; nbsp;
: instead of \t
: [/snip]
:
: And one other thing I didn't see mentioned http://www.php.net/nl2br
Note that nl2br() is XHTML compliant, which means it
--- Eugene Lee [EMAIL PROTECTED] wrote:
Note that nl2br() is XHTML compliant, which means it sends out
br / tags instead of br tags. This is a problem on
browsers that do poorly with mixed HTML and XHTML tag styles in the
same body content.
Which browsers does this refer to?
Chris
=
My
14 matches
Mail list logo