Possible Duplicate:
How to extract img src, title and alt from html using php?
<img width="200" height="300" src="http://runapvo.apivo.com/files/2011/06/2444-200x300.jpg" class="attachment-medium" alt="2444" title="2444" />
From this image tag I need to take src alone. How can I do this? Is there any predefined functions available?…
Load it into a DOM tree with
loadHtmland do an xpath on it, or directly traverse it if the structure is always the same.See How to extract img src, title and alt from html using php?