Mój kod:
$html = file_get_html('test.html'); foreach($html->find('img[id=article_image]') as $e)
Ale coś lipa. Pomoże ktoś jak wyciągnąc obrazek zz tego elementu <div>

$html = file_get_html('test.html'); foreach($html->find('img[id=article_image]') as $e)
$dom = new DOMDocument(); $dom->loadHTML($html); $div = $dom->getElementById('article_image'); $image = $div->getElementsByTagName('img'); foreach ($image as $images) { } ?>
$dom = new DOMDocument(); $dom->loadHTML($html); $div = $dom->getElementById('xyz'); $links = $div->getElementsByTagName('a'); foreach ($links as $link) { $li = $link->getAttribute('href'); }
$adept = '<a href="http://strona.pl/miasto/gliwice,oferta,4204026>"'; $pattern = '#http://strona.pl/miasto/(.+?),oferta,(.+?)#';