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
The right code to get a div with class is:
$ret = $html->find('div.foo');
//OR
$ret = $html->find('div[class=foo]');
Basically you can get elements as you were using a CSS selector.
source: http://simplehtmldom.sourceforge.net/manual.htm
How to find HTML elements? section, tab Advanced
The to find the following elements: DIV -> class(product-inner clearfix) -> class(price)
the following XPath can be used:
foreach($html->find('div[class=product-inner clearfix]') as $element){
$itemPrice = $element->find('.price',0)->plaintext;
echo $itemPrice;
}
$html = new simple_html_dom();
$html->load($output);
$items = $html->find('div.youclassname',0)->children(1)->outertext;
print_r($items);