Re: "\n" in PHP
From: Jeffrey Silverman (jeffrey_at_pantsjhu.edu)
Date: 07/12/04
- Next message: Piotr Wolski: "Re: exec()"
- Previous message: Peter Brause: "Re: newbie question about switch, form and table"
- In reply to: Mudge: "Re: "\n" in PHP"
- Next in thread: bonehead: "Re: "\n" in PHP"
- Reply: bonehead: "Re: "\n" in PHP"
- Reply: William Holroyd: "Re: "\n" in PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 12 Jul 2004 17:19:04 -0400
On Mon, 12 Jul 2004 05:13:49 +0000, Mudge wrote:
> I happen to be working through this book right now also. I've noticed,
> at least in the early chapters, that it's basically just a matter of
> style. The newline characters are not always necessary, but sometimes
> they do make the html output a little more readable as other posters
> have already pointed out. If you're curious, write one of the example
> scripts, get it to run, and then go back and remove the newline
> characters and see the difference.
I definitely think the newlines are important. Try writing 1200 lines of
PHP that output HTML *without* newlines and then go back and debug your
output! You will greatly appreciate the additioanl formatting, even if the
actual end-user never sees it in her browser.
> Thanks bonehead. Do you by any chance recommend any other books on PHP
> or CSS or XML?
I'm not bonehead, either. I have, however, found that "PHP and MySQL Web
Development, Second Edition" by Welling/Thompson is very nice.
--
Jeffrey D. Silverman | jeffrey@pantsjhu.edu **
Website | http://www.newtnotes.com
(** Drop "pants" to reply by email)
- Next message: Piotr Wolski: "Re: exec()"
- Previous message: Peter Brause: "Re: newbie question about switch, form and table"
- In reply to: Mudge: "Re: "\n" in PHP"
- Next in thread: bonehead: "Re: "\n" in PHP"
- Reply: bonehead: "Re: "\n" in PHP"
- Reply: William Holroyd: "Re: "\n" in PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|