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