Php Domdocument Get Text After Tag January 30, 2024 Post a Comment I have this in my php file. Text I need this text... next p ... and this '; $dom=neSolution 1: Use DOMXPath:$xpath = new DOMXpath($domDocument); foreach ($xpath->query('//div/text()') as$textNode) { echo$textNode->nodeValue; } Copy Share
Post a Comment for "Php Domdocument Get Text After Tag"