I prefer single quotes on stuff that doesn't need to
be parsed. In most cases this is more efficient,
though probably not noticed except on a large scale.
I also think it makes it easier to include html
strings (because double quotes don't need to be
escaped) and I find it easier to work my code
into your audience.
* http://www.christianperformer.com
*
-Original Message-
From: Peter Hutnick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 10:40 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Ever complained about lousy PHP programmers?
Well, here's your chance to criticize a newbie
Olinux wrote:
I prefer single quotes on stuff that doesn't need to
be parsed. In most cases this is more efficient,
though probably not noticed except on a large scale.
I also think it makes it easier to include html
strings (because double quotes don't need to be
escaped) and I find it easier
Well, here's your chance to criticize a newbie.
As an exercise in learning PHP I have written a rot-13 script. It is at
http://hutnick.com/rot13/index.html?show_content=1 .
I'm soliciting comments on style, technique, etc. Be brutal, but don't
get your feelings hurt if I don't take your
4 matches
Mail list logo