You can also use tabs (\t).
This is an example using tabs and newlines:
echo "table\ntr\n\ttdHello There/td\n\ttdHow are
you/td\n/tr/table";
Note: You must use quotes because ticks don't work.
Jeff
""Mark"" [EMAIL PROTECTED] wrote in message
9597gb$4el$[EMAIL
I'd like my html output to be neatly written, including newlines is helpful
but does anyone know of a better way to output newlines than appending
."\n"; to every echo statement.
-Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Write yourself a function that handles it yourself and include it in every
page... something such as:
function println( $cTextToPrint ) {
print( $cTextToPrint . "BR" );
}
then in your pages just use println() everywhere...
At 08:29 AM 1/31/01 -0600, Mark wrote:
I'd like my html
oops, that function declaration should look like:
function println( $cTextToPrint ) {
print( $cTextToPrint . chr(13) );
}
At 07:40 AM 1/31/01 -0700, Joe Sheble (Wizaerd) wrote:
Write yourself a function that handles it yourself and include it in every
page... something such as:
Addressed to: "Mark" [EMAIL PROTECTED]
[EMAIL PROTECTED]
** Reply to note from "Mark" [EMAIL PROTECTED] Wed, 31 Jan 2001 08:29:57 -0600
I'd like my html output to be neatly written, including newlines is
helpful but does anyone know of a better way to output newlines than
AM
Subject: Re: [PHP] neat html output
oops, that function declaration should look like:
function println( $cTextToPrint ) {
print( $cTextToPrint . chr(13) );
}
At 07:40 AM 1/31/01 -0700, Joe Sheble (Wizaerd) wrote:
Write yourself a function that handles it yourself and include i
6 matches
Mail list logo