PHP echo variable and html together
<p>I know this is a basic php question, but I'm having trouble showing variables inside an echo of HTML. Below is what I'm trying to achieve.</p>

<pre><code>&lt;?php
    $variable = 'testing';
    echo &lt;span class="label-[variable]"&gt;[variable]&lt;/span&gt;
?&gt;
</code></pre>

<p>should output:</p>

<pre><code>&lt;span class="label-testing"&gt;testing&lt;/span&gt;
</code></pre>
