使用 PHP DOMDocument 类加载有效的 HTML 文档: https ://www.php.net/manual/en/class.domdocument.php如何获得 DOM 树达到的最大深度? 查看完整描述