Back to Basics - Why Use Single Quotes?

From: Date: Wed, 30 Jul 2008 22:51:28 +0000
Subject: Back to Basics - Why Use Single Quotes?
Groups: php.general 
Request: Send a blank email to php-general+get-277501@lists.php.net to get a copy of this message
I have traditionally used double quotes going back to my PASCAL days. I see many PHP examples using single quotes, and I began to adopt that convention. Even updating existing code. And I broke some stuff that was doing variable expansion. So I am back to using double quotes. But I wonder, is there any reason to use single quotes? Stephen

« previous php.general (#277501) next »