title: PHP Getting text/value from a span by id and put it in a variable from an external site with cURL
body: <p>My question is, how do I get the value/text by id, thats between a span from an external website by using cURL. And after that, put it in a variable.</p>
  
  <p>I have the following span:</p>
  
  <pre><code>&lt;span id="company" class="company"&gt;Example&lt;/span&gt;
  </code></pre>
  
  <p>I tried to use:</p>
  
  <pre><code>$company = $_POST['company'];
  echo($company);
  </code></pre>
  
  <p>But that didn't work.</p>
  
  <p>The output should be:</p>
  
  <pre><code>Example
  </code></pre>