首页 >后端开发 >php教程 > 请问php处理html源代码方法

请问php处理html源代码方法

WBOY
WBOY原创
2016-06-13 13:23:12826浏览

请教php处理html源代码方法!在线等
例如:http://www.bengou.com/100408/pm10040810/index.html

其中部分html源代码为:

HTML code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
                    <div class="subsrbelist center" id="mhlist">
                        <ul>
                        
                            <li>
                                <a title="第8话" href="1270695200772/1270695200772.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第8话)</span> (11页)</a>
                                
                                
                            </li>
                                    
                            <li>
                                <a title="第7话" href="1270695205513/1270695205513.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第7话)</span> (12页)</a>
                                
                                
                            </li>
                                    
                            <li>
                                <a title="第6话" href="1270695210191/1270695210191.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第6话)</span> (12页)</a>
                                
                                
                            </li>
                                    
                            <li>
                                <a title="第5话" href="1270695217633/1270695217633.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第5话)</span> (12页)</a>
                                
                                
                            </li>
                                    
                            <li>
                                <a title="第4话" href="1270695221210/1270695221210.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第4话)</span> (16页)</a>
                                
                                
                            </li>
                                    
                            <li>
                                <a title="第3话" href="1270695226220/1270695226220.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第3话)</span> (16页)</a>
                                
                                
                            </li>
                                    
                            <li>
                                <a title="第2话" href="1270695230252/1270695230252.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第2话)</span> (18页)</a>
                                
                                
                            </li>
                                    
                            <li>
                                <a title="第1话" href="1270695233876/1270695233876.html" target="_blank">泡沫王子Prince Bubble <span class="red">(第1话)</span> (12页)</a>
                                
                                
                            </li>
                                    
                        </ul>
                        <br class="clearall">
                    </div>




如何通过php程序获取上述代码中
请教各位老师,在线等!!

------解决方案--------------------
preg_match('/
(.*?)/is',$s,$m);
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn