|
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]
|