html import test $string = 'https://upstateracingleague.com/Event_Result.html'; $dom = new DOMDocument; $dom->loadHTML($string); foreach($dom->getElementsByTagName(‘div id’) as $node) { $array[] = $dom->saveHTML($node); } print_r($array); ?>