How to wrap a div tag inside other tags and variable using php's echo function?
<p>How to wrap a div tag inside other tags and variable using php's echo function? </p>

<p>This php code works:</p>

<pre><code>     echo "&lt;strong&gt; $matches[1] &lt;/strong&gt;" . "&lt;p&gt; $matches[2]  &lt;/p&gt;";
</code></pre>

<p>But I need the above code to wrap inside a div. I tried the following code below but its not working.</p>

<pre><code>    echo "&lt;div&gt;";              
    echo "&lt;strong&gt; $matches[1] &lt;/strong&gt;" . "&lt;p&gt; $matches[2]  &lt;/p&gt;";
    echo "&lt;/div&gt;";
</code></pre>
