How to just get urls inside a image anchor tag using SimpleHTMLDOM
<p>I use SimpleHTMLDOM to grab stuff from other web page but i have a problem how to just get urls inside of image ancor tag because that web page consists linking anchor tags as well as image anchor tags ! but i just want to get href value in side the image anchor tag !</p>

<pre><code>&lt;a href="I DO NOT NEED THIS VALUE"&gt;&lt;a/&gt;


&lt;a href="I NEED THIS VALUE"&gt;&lt;img src="xxxx"&gt;&lt;a/&gt;
</code></pre>

<p>but when call for the DOM its returns all the href URLs including linking anchor URLs ! I just need the URLs inside image anchor tag !</p>

<p>i use this code to call..</p>

<pre><code>$hrefl = $html-&gt;find('a');

$count = 1;

for( $i = 0; $i &lt; 50; $i++){

              echo $hrefl[$count]-&gt;href;
              $count++;

 }
</code></pre>
