Find div with class using PHP Simple HTML DOM Parser

前端 未结 3 1312
既然无缘
既然无缘 2020-12-15 01:54

I am just starting with the mentioned Parser and somehow running on problems directly with the beginning.

Referring to this tutorial:

http://net.tutsplus.com

3条回答
  •  猫巷女王i
    2020-12-15 02:31

    $html = new simple_html_dom();   
    $html->load($output); 
    $items = $html->find('div.youclassname',0)->children(1)->outertext; 
    print_r($items);
    

提交回复
热议问题