开发者社区 问答 正文

关于PHP正则匹配table的问题

PHP正则抓取第二个table中的html代码该怎么做
screenshot

展开
收起
小旋风柴进 2016-03-06 13:01:17 2152 分享 版权
1 条回答
写回答
取消 提交回答
  • $res = preg_match_all('|
    
    (.*)<\/table>|U',$html,$match);
    $match[1][1];//就是第二个table中的html数据
    2019-07-17 18:54:23
    赞同 展开评论