preg match html to variable php get value span : <p><strong>Hello,</strong></p>

<p>I need to get the value of:</p>

<pre><code>&lt;span class="price amount"&gt;&lt;/span&gt;
</code></pre>

<p>This is my complete code:</p>

<pre><code>&lt;td&gt;&lt;div class="yith_wapo_group_final_total"&gt;&lt;span id="teste" class="price amount"&gt; VALUE &lt;/span&gt;&lt;/div&gt;&lt;/td&gt;
</code></pre>

<p>I need to somehow recover the value that this:</p>

<pre><code>&lt;span id = "test" class = "price amount"&gt; VALUE &lt;/span&gt;
</code></pre>

<p><strong>The goal is to pass the value to a php variable.</strong></p>

<p><strong>Thanks.</strong></p>
