Answer the question
In order to leave comments, you need to log in
PHP simple HTML DOM how to get attributes?
<?php
include_once('simple_html_dom.php');
$html = file_get_html(' https://site.com ');
$element = $html->find( "img" );
echo count($element);
echo $element[4];
?>
$element[4] contains many images and one image that I need with the data-src attribute. How to display it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question