Category:Educational psychology
Category:TeachingQ:
How can I get the height of a specified div in a loop?
I'm having trouble, I can't get the height of a specific element.
Can anyone explain to me what am I doing wrong?
HTML;
$dom = new DOMDocument;
libxml_use_internal_errors(true);
$dom->loadHTML($html);
libxml_clear_errors();
$xpath = new DOMXPath($dom);
for ($i = 0; $i query('//div[@class="demo"]')->item(0)->get be359ba680
Related links:
Comments