2
嗨!我有一個內容像如何從內容中僅獲取圖像
<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()
但我不能做我所需要的,所以任何人都可以幫助我嗎?
感謝@DarkXphenomenon它的工作 – user1561923 2012-07-31 08:22:24