How to get the data-lazyload property value, ($comment_img- > data-lazyload) so that the program reports a syntax error
kl521516 opened this issue · comments
<div class="shop-photo">
<div class="inner">
<ul>
<li><img src="none.jpg" data-lazyload="/pc/aaa.jpg"></a></li>
<li><img src="none.jpg" data-lazyload="/pc/bbb.jpg"></a></li>
</ul>
</div>
</div>
foreach ($html->find('.shop-photo .thumb img') as $comment_img) {
echo($comment_img->data-lazyload);
}
How to get the data-lazyload property value, ($comment_img- > data-lazyload) so that the program reports a syntax error
Hi, here I added a new example: 7b0b965
Happy Coding! 👍
Thank you for your reply.