title: getting src element using domDocument
body: <p>I am using domDocument. I am close but need help for the last little bit</p>
  
  <p>I have this html just a snippet below.
  There are a number of rows. I am trying to get the href.</p>
  
  <p>so far i am doing the following:
  I can get the table, tr, and td ok , but not sure what to do from there.</p>
  
  <p>Thanks for any help</p>
  
  <pre><code>foreach ($dom-&gt;getElementsByTagName('table') as $tableitem) {
      if ( $tableitem-&gt;getAttribute('class') == 'tableStyle02'){
          $rows = $tableitem-&gt;getElementsByTagName('tr');
          foreach ($rows as $row){ 
              $cols = $row-&gt;getElementsByTagName('td'); 
  
              $hrefs = $cols-&gt;item(0)-&gt;getElementsByTagName('a'); 
          }     
      }
  }
  </code></pre>
  
  <p>html snippet:</p>
  
  <pre><code>&lt;table width="100%" border="0" cellspacing="0" cellpadding="2" class="tableStyle02"&gt; 
      &lt;tr&gt; 
          &lt;td&gt;&lt;span class="Name"&gt;&lt;a href="bin.php?cid=703&amp;size=0"&gt;
                 &lt;strong&gt;Conference Facility&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
          &lt;td align="center" nowrap&gt;0.00&lt;/td&gt;
          &lt;td align="center"&gt;&amp;nbsp;0&amp;nbsp;&lt;/td&gt;
          &lt;td align="center"&gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
          &lt;td align="center"&gt;&amp;nbsp;0&amp;nbsp;&lt;/td&gt;
          &lt;td align="center"&gt;&amp;nbsp;0&amp;nbsp;&lt;/td&gt;
          &lt;td align="center"&gt;&amp;nbsp;0 - 0 &amp;nbsp;&lt;/td&gt;
          &lt;td align="center"&gt;&amp;nbsp;Wired Internet,&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
          &lt;td align="center"&gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>