Posted by Michael Fesser on 07/20/07 16:54
..oO(Joe Scylla)
>it's just my coding style to use only double quotes
I've seen horrific code with a lot of escaping, concatenation, single-
and double quotes mixed within to build a complex SQL query. It can be
really hard to find a missing quote in such a mess, but YMMV.
>While theres no difference in using double or single quotes - but
>concatenation is much faster than embedd variables into strings.
Not necessarily. In the UCNs on php.net you'll find "benchmarks" that
state one or the other
And performance is hardly ever a reason when printing out something.
BTW, the fastest would probably be an echo with a comma-separated list
of arguments.
Micha
[Back to original message]
|