php Embedding single quote within double quotes won't work
<p>Please help. I'm really stuck on this and I'm learning PHP. I know the basics but I need to learn advance things like below:</p>

<pre><code>echo "&lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;$_POST['quiz_complete']&lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;"; //this code won't execute
//Note: variable $_POST['quiz_complete'] exists
&lt;code&gt;echo "&amp;lt;p&amp;gt;$str&amp;lt;p&amp;gt;";&lt;/code&gt; //works fine
</code></pre>

<p>This ' single quotes don't work. How do I get single quotes to work within a variable that's inside double quotes for eg) </p>

<pre><code>echo "&lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;$_POST['quiz_complete']&lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;";
</code></pre>
