how to use simple html dom get a div inner text

前端 未结 4 1874
無奈伤痛
無奈伤痛 2020-12-06 23:39
innertext

Jow can I access i

4条回答
  •  死守一世寂寞
    2020-12-07 00:05

    Thanks to all. I depends on simple_html_dom too much, Ben Blank give me a good way. And I also tried php regular-expression to match the div by myself.

    preg_match_all('/([\d\D]*)<\/div>/iU',$html,$match);
    print_r($match); 
    

提交回复
热议问题