This question already has an answer here:
My code bellow grabs some content. in this content there are some photos. How can i loop through this content find all images and return their src?
my code so far:
$items = $html->find('div.post-single-content',0)->children(1)->outertext;
foreach($items $node) {
$node->find('img');
}
print_r ($node);
Don't use regex, use a parser. Example:
Output: