Home > Backend Development > PHP Tutorial > 各位大侠麻烦进来帮一上,关于文件内容中获取特定位置的文件

各位大侠麻烦进来帮一上,关于文件内容中获取特定位置的文件

WBOY
Release: 2016-06-13 12:54:24
Original
881 people have browsed it

各位大侠麻烦进来帮一下,关于文件内容中获取特定位置的文件
请教各位大侠
例如内容格式如下,但文件内容可能有一个或多个专业名称的,怎么把这些专业名称获取出来?


  • 学历 : 

  • 学位 : 
                

  • 专业名称 : 
            


  •  


------解决方案--------------------
<br />
<br />
preg_match_all("<br><font color='#FF8000'>------解决方案--------------------</font><br>专业名称(.*?)<label>(.*?)</label><br><font color='#FF8000'>------解决方案--------------------</font><br>msu",$string,$out);<br />
var_dump($out[2]);<br />
<br />
Copy after login
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