title: Get the class tags using file_get_contents
body: <p>I'm working on my PHP script to parse the html web page. I'm using <code>file_get_contents</code> to open the url to get the list of contents.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>$links = $row['links'];
  $result = file_get_contents($links);
  $html_content = str_replace("&lt;a id='rowTitle1' class", "&lt;a id='rowTitle1' class",$result);
  print $html_content;
  </code></pre>
  
  <p>Here's the html output:</p>
  
  <pre><code>&lt;li class="zc-ssl-pg" id="row1-1" style=""&gt;
  &lt;span id="row1Time" class="zc-ssl-pg-time"&gt;6:00 PM&lt;/span&gt;
  &lt;a id="rowTitle1" class="zc-ssl-pg-title" href='http://www.mysite.com'&gt;The Middle&lt;/a&gt;
  &lt;a class="zc-ssl-pg-ep" href='http://www.mysite.com'&gt;"Thanksgiving IV"&lt;/a&gt;
  </code></pre>
  
  <p>Can you please tell me how I can get the values from the row1Time, rowTitle1 and the zc-ssl-pg-ep tags tags in the row1-1 class using with file_get_contents?</p>