<?php $dom = new domDocument(); $dom->strictErrorChecking = false; $dom->recover = true; $html = "https://www.wordproject.org/bibles/am/01/1.htm"; $dom->loadHTML($html); $h2 = $dom->getElementsByTagName("h2"); var_dump($h2); foreach($h2 as $element) { echo $element->ownerDocument->saveHTML($element); }
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`