Home  >  Article  >  Backend Development  >  php 截取网页表格有关问题

php 截取网页表格有关问题

WBOY
WBOYOriginal
2016-06-13 13:40:28730browse

php 截取网页表格问题
我的一个网页如下:

HTML code
<!--

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

-->
 

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="Content-Language" content="utf-8">
    
   
ID 省份ID 省份名称 车牌号前称 是否显示 操作
10 55 广西 1 编辑 删除
9 20 广东 1 编辑 删除
上一页 1 下一页



怎么可以获取到表格中的数据??

------解决方案--------------------
探讨

引用:
如果是这样可以使用正则来获取.
这个表格不是你自己的么?那数据哪来的?

我想做到从别的网页获取表格的信息。。

------解决方案--------------------
先用file_get_contents();取出内容。再用正则获取你想要的内容。
------解决方案--------------------
snoopy是否可以试试。
Statement:
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