作者MapleWang8 (疯子谷待太久.....)
看板PHP
标题Re: [请益] 读取外部网页的表格文字内容
时间Sun Jan 16 18:55:02 2011
: 推 bigair:file_get_contents, curl, preg_match 01/14 20:38
我能用file_get_contents或curl去捉取来源档案了
可是捉回来的.htm档
要如何分析
把<table>中间的第一栏、第二栏.....取出来呢?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 175.181.235.162
1F:推 bigair:你可以参考 PHP Simple HTML DOM Parser + preg_match 01/16 19:47
2F:推 scribeTW:我记得有phpQuery这种类似jQuery可以用Selector,方便 01/16 21:04
3F:推 shadowjohn:写支getbetween的function以後要用就方便多了~ 01/17 02:30