title: scraping a specific html element with curl php
body: <pre><code>&lt;?php
  
  $url = 'http://url.com/usersvalue.html/';
  
  $curl = curl_init($url);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  $result = curl_exec($curl);
  curl_close($curl);
  
  
  print ($result);
  
  
  ?&gt;
  </code></pre>
  
  <p>I'm trying to make a script which only outputs a specific line from a website, and that line is html and its </p>
  
  <pre><code>"&lt;td&gt;users&lt;/td&gt;&lt;td&gt;100&lt;/td&gt;"
  </code></pre>
  
  <p>. I'm trying output the value of <code>"&lt;td&gt;100&lt;/td&gt;"</code> which is 100 at this point, each time the value changes on the $url website..</p>
  
  <p>the html of the $url website:</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style='font-family:Verdana'&gt;
  &lt;h2&gt;Status&lt;/h2&gt;&lt;hr&gt;
  &lt;table cellpadding='6' cellspacing='0' border='0'&gt;
  &lt;tr bgcolor='#eeeeee'&gt;&lt;th align='left'&gt;Key&lt;/th&gt;&lt;th align='left'&gt;Value&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;users&lt;/td&gt;&lt;td&gt;100&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;uptime&lt;/td&gt;&lt;td&gt;00&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;zones&lt;/td&gt;&lt;td&gt;0&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;rooms&lt;/td&gt;&lt;td&gt;0&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;version&lt;/td&gt;&lt;td&gt;0&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;&lt;hr&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>