loadHTML($string); $finder = new DomXPath($dom); $content = $finder->query("//*[contains(concat(' ', normalize-space(@data-component-name), ' '), ' ProductPage ')]")[0]->textContent; $content = json_decode($content); print_r($content->product->seller); ?>