There is a certain $html variable obtained through curl (everything works). Next I want to get a div with the class partscontrol :
$simpleHTML = new SimpleHTMLDOM; $div=$simpleHTML->str_get_html($html); $results=$div->find('.partscontrol'); but $results returns an empty array. If you just look for a <div> or <a> , etc., then everything works. What is the catch? Options such as ('.partscontrol',0) , ('div.partscontrol',0) , ('div.partscontrol') , ('div.partscontrol',0) - the same result.