How to get a URL from HTML code block?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3820666/grabbing-the-href-attribute-of-an-a-element">Grabbing the href attribute of an A element</a>  </p>
</blockquote>



<p>I have the following code :</p>

<pre><code>&lt;?php $a= "&lt;a href="http://www.kqzyfj.com/click-6331466-10751223" target="_top"&gt;
&lt;img src="http://www.tqlkg.com/image-6331466-10751223" width="300" height="250" alt="Kaspersky Anti-Virus 2013" border="0"/&gt;&lt;/a&gt;" ?&gt;
</code></pre>

<p>Please suggest me any Idea that how can I retrieve the URL (http://www.kqzyfj.com/click-6331466-10751223) in php.</p>
