|
-
Sep 2nd, 2011, 08:01 AM
#2
Re: Single Quote vs Double Quote, What to default to?
Of course there is a performance difference... you pointed it out yourself: "single quote also does not parse escape sequences such as \n and \r." -- since single quotes don't allow the parsing of \n or of variable names, it can be treated as literal text and doesn't need to be run through any further processing. I work from the opposite opinion... I use single quotes, unless I'm inserting $vars right into my text. And even then I'm not above .concatenating.my.strings.together either.
-tg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|