$dom_obj = new simple_html_dom(); /** * Where [id] is the id of the div element you want to find. */ $return = $dom_obj ->find('div[id]'); print_r($return); // usually an associative array of results.