Reply to Re: Coding style...

Your name:

Reply:


Posted by Curtis on 01/02/06 23:30

Janwillem Borleffs <jw@jwscripts.com> wrote in message
news:43b90896$0$293$dbd4b001@news.euronet.nl...
> Lόpher Cypher wrote:
> > Btw, I prefer to rather escape quotes (\"). I believe ""
is a standard
> > for xhtml, and there was some slight difference between
'' and "" in
> > php. However, for strings in php, you can't go wrong
with "" :)
> >
>
> Using quotes for attribute values is a standard in XHTML;
it doesn't matter
> when they are single or double.
>
> In PHP, strings encapsuled in double quotes are parsed,
and strings in
> single quotes are taken literally. So, when you don't need
to output
> variable values, single quotes are the best choice.
>
>
> JW

Do you think that, in practice, this makes enough difference
to justify mixing styles?

I'm writing all my code based upon the understanding that
PHP code is parsed once and remains in accelerator cache to
be called thereafter (assuming such software is installed),
so I use comments and whitespace very liberally, something I
would not do if I believed the scripts needed to be parsed
every time they were called.

Someone please correct me if my understanding is flawed.

--

Curtis

Visit We the Thinking
www.wethethinking.com
An online magazine/forum
devoted to philosophical
thought.

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация