Re: Single Quote vs. Double Quote..
| From: | Marko Vukovic' | Date: | Wed, 30 Aug 2000 11:06:39 +0000 |
| Subject: | Re: Single Quote vs. Double Quote.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14380@lists.php.net to get a copy of this message | ||
Maxim Maletsky wrote:
>
> Hi all,
> I just was wondering what is everyone of you thinking about using single
> quotes
> in most of the strings.
>
> I know well the difference between Single and Double quotes, but why when
> people
> write even a simple string they usually use Double Quotes?
I personally use single quotes only for the html stuff because:
A) I don't have to hold down the shift key to type it and
B) I use single quotes in my html, that way I can write stuff in an echo without having to backslash
\" the double quotes
eg: echo "<img src='image.jpg'>\n"; as opposed to echo "<img
src=\"image.jpg\">\n";
I have pulled my hair out many times trying to find missing \'s so I eventually gave up and
now use single quotes only in all html.
my 2c ;)
--
Marko.