title: how to extract text from a html element by id and assign to a php variable?
body: <p>I have this:</p>
  
  <pre><code>&lt;h4 class="modal-title" id="exampleModalLabel"&gt; hello &lt;/h4&gt;
  </code></pre>
  
  <p>and I want to extract the <em>hello</em> word using its <code>id</code> and assign this to a php var but I don't have an idea. If it were an input it would be easier, but I have to use a different element.</p>