你好!我有一个内容
<p>
<a href="http://haha.yellowandred.in/wp-content/uploads/2012/07/535540_273587499393207_2112055176_n.jpg">
<img class="aligncenter size-medium wp-image-9" title="Reasons heals nothing" src="http://haha.yellowandred.in/wp-content/uploads/2012/07/535540_273587499393207_2112055176_n-212x300.jpg" alt="" width="212" height="300" />
</a>
</p>
<p>
The post <a href="http://haha.yellowandred.in/reasons-heals-nothing/">Reasons heals nothing</a> appeared first on <a href="http://haha.yellowandred.in">haha</a>.
</p>
从这个内容中,我必须只获取图像标签及其属性。
我怎么能这样?
我用过preg_match()
但我不能做我需要的所以有人可以帮助我吗?