title: single quotes and double quotes in php?
body: <p><strong>Double quotes--->"$a"</strong> interpretes variables.</p>
  
  <p><strong>single quotes--->'$a'</strong> does not.Alright till now</p>
  
  <p><strong>MyQuestion:</strong></p>
  
  <ul>
  <li>what if I use <code>"'$a'"</code>?</li>
  </ul>
  
  <p><em>Note</em>:want to know behind the scene details.</p>
  
  <p><em>Detailed Explanation</em>:</p>
  
  <p>I faced a major problem because of this when I used it in a foreach loop:</p>
  
  <p>The following example gave me incorrect option value. For example, value it renders is UX if original is UX developer</p>
  
  <pre><code>echo "&lt;option value=".$item['m_designation']."&gt;".$item['m_designation']."&lt;/option&gt;";
  </code></pre>
  
  <p>this example gave me correct option value. For example,value it renders is UX developer if original is UX developer</p>
  
  <pre><code> echo '&lt;option value="'.$item['m_designation'].'"&gt; '.$item['m_designation'].' &lt;/option&gt;';
  </code></pre>
  
  <p>Hope I am clear.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I got the desired result but I don't know the logic behind it. I have tried it and done it successfully, but I wanted to know what's happening behind the scene. I think people have misread my question.</p>