[Solved] How to get alt attribute from a specific div image by php dom parser?
Let’s say the div’s class is foo: foreach($html->find(‘div.foo’) as $div) { echo $div->alt . ‘<br>’; } 0 solved How to get alt attribute from a specific div image by php dom parser?