Home > Backend Development > PHP Tutorial > 请问php处理html源代码方法

请问php处理html源代码方法

WBOY
Release: 2016-06-13 13:23:12
Original
825 people have browsed it

请教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>


Copy after login


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

------解决方案--------------------
preg_match('/
(.*?)/is',$s,$m);
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template