Explain Types of Strings in PHP
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3446216/difference-between-single-quote-and-double-quote-string-in-php">Difference between single quote and double quote string in php</a>  </p>
</blockquote>



<p>I'm a newbie to PHP and I'm getting a little confused about how to specify strings.</p>

<p>There seem to be 4 ways to specify strings</p>

<ol>
<li>Single quoted strings </li>
<li>Double quote strings</li>
<li>Heredoc</li>
<li>Nowdoc (since PHP 5.3.0) </li>
</ol>

<p>I was wondering why there are so many types of specifications and what is the best way to specify a string? </p>

<p>Because again in <a href="http://phplens.com/lens/php-book/optimizing-debugging-php.php" rel="nofollow">this </a> article it says single and double quotes are equally fast but there are others which disagree.</p>

<p>Why even have single and double quotes? Does it add speed, accuracy is any one better under certain conditions?</p>
