PHP DOMDocument - Get all elements on the first top-level

后端 未结 0 372
被撕碎了的回忆
被撕碎了的回忆 2021-01-29 18:39

I would like to find all elements in the $content without children.

With my actual code, I find all elements with child (strong, ahref, ...).

$html = new D         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题