Use DomDocument to replace all header tags with the h4 tags
问题 I've used DomDocument to to GetElementById. It has selected a div. I need to replace all the header tags within that div with the h4 tag. 回答1: You have not made clear in your question what the concrete problem is you run into. I would assume that there are two parts that could cause you some questions marks. The first one would be how to get the hand on all the elements that you want to rename and the second one is actually how to rename an element. Get Heading Elements of a DOMDocument So