Possible Duplicate:
Difference between single quote and double quote string in php
I'm a newbie to PHP and I'm getting a little confused about how to specify strings.
There seem to be 4 ways to specify strings
- Single quoted strings
- Double quote strings
- Heredoc
- Nowdoc (since PHP 5.3.0)
I was wondering why there are so many types of specifications and what is the best way to specify a string?
Because again in this article it says single and double quotes are equally fast but there are others which disagree.
Why even have single and double quotes? Does it add speed, accuracy is any one better under certain conditions?