|
有这样一段网页源码:
<a class="js-tongjic" target="_blank" href="url=http://aaa.com"><div class="cover g-playicon"><img src="http://aaa.jpg"><span class="hint">555556</span> </div><div class="detail"><p class="title g-clear"><span class="s1">2466</span></p><p class="star">AAA你好</p></div></a></li>
<a class="js-tongjic" target="_blank" ><div class="cover g-playicon"><img src="http://bbb.jpg"><span class="hint">哈哈哈</span> </div><div class="detail"><p class="title g-clear"><span class="s1">181</span></p><p class="star">BBB来了</p></div></a></li>
<a class="js-tongjic" target="_blank" ><div class="cover g-playicon"><img src="http://yccc.jpg"><span class="hint">等等</span> </div><div class="detail"><p class="title g-clear"><span class="s1">568</span></p><p class="star">CCC吃饭</p></div></a></li>
<a class="js-tongjic" target="_blank" ><div class="cover g-playicon"><img src="http://ddd.jpg"><span class="hint">啊啊</span> </div><div class="detail"><p class="title g-clear"><span class="s1">64</span></p><p class="star">何二恩</p></div></a></li>
''''''''''' 后面还有若干同类型的
我想达到如下目的,通过php实现取出这样的结果:
AAA你好,http://aaa.com
BBB来了,http://bbb.com
CCC吃饭,http://ccc.com
何二恩,http://ddd.com
后面同理
望各位大神不吝赐教
|
|