how to use CURL and PHP Simple HTML DOM Parser with object

前端 未结 2 1184
礼貌的吻别
礼貌的吻别 2020-12-01 15:18

Using CURL to get content from website. Getting response in object. How to convert that object in to PHP Simple HTML DOM Parser

function get_data($url) 
{
          


        
2条回答
  •  遥遥无期
    2020-12-01 16:08

    Curl will return a string containing the HTML right? Just use the quick start sample?

    $html = str_get_html(curl_exec($ch));
    

提交回复
热议问题