Home > Backend Development > PHP Tutorial > 怎么不用正则,提取网页中的指定标签的信息

怎么不用正则,提取网页中的指定标签的信息

WBOY
Release: 2016-06-13 10:24:52
Original
818 people have browsed it

如何不用正则,提取网页中的指定标签的信息
如我要提取标题,标签是:

标题 如何不用正则将里面的信息提取出来

------解决方案--------------------
一直循环到找不到为止: 每次strpos找,然后从>之后找,中间就是一个结果, 下一次循环从之后继续。
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