如何获得previousSibling和nextSibling

时间:2011-08-16 07:22:59

标签: php html-parsing web-scraping

我有html:

<hr>
<p><font face="AvantGarde Bk BT" style="font-size: 9pt" color="#66FF33">
(08/04/2006) Parallel Worlds are one of the featured artists in the
<a href="http://www.urband.net/radio/">Urban D radio</a>. there you can listen 
to many tracks from the 3 released cd albums.</font></p>
<hr>

我需要得到

1:(08/04/2006) Parallel Worlds are one of the featured artists in the

2:. there you can listen to many tracks from the 3 released cd albums.

我使用http://simplehtmldom.sourceforge.net

我得到元素$e->href这是<a href="http://www.urband.net/radio/">Urban D radio</a>

1 个答案:

答案 0 :(得分:-1)