ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
该扩展能够产生两个XML文档的差异,然后将差异应用于源文档。diff是一个XML文档,其中包含人类可读格式的复制/插入/删除指令节点。可以处理DOMDocument对象,本地文件和内存中的字符串 [https://pecl.php.net/package/xmldiff](https://pecl.php.net/package/xmldiff). * [XMLDiff \\ Base](https://www.php.net/manual/en/class.xmldiff-base.php)— XMLDiff \\ Base类 * [XMLDiff \\ Base :: \_\_ construct](https://www.php.net/manual/en/xmldiff-base.construct.php)—构造函数 * [XMLDiff \\ Base :: diff](https://www.php.net/manual/en/xmldiff-base.diff.php)—产生两个XML文档的差异 * [XMLDiff \\ Base :: merge](https://www.php.net/manual/en/xmldiff-base.merge.php)—基于diff生成新的XML文档 * [XMLDiff \\ DOM](https://www.php.net/manual/en/class.xmldiff-dom.php)— XMLDiff \\ DOM类 * [XMLDiff \\ DOM :: diff](https://www.php.net/manual/en/xmldiff-dom.diff.php)—[区分](https://www.php.net/manual/en/xmldiff-dom.diff.php)两个DOMDocument对象 * [XMLDiff \\ DOM :: merge-](https://www.php.net/manual/en/xmldiff-dom.merge.php)生成合并的DOMDocument * [XMLDiff \\ Memory](https://www.php.net/manual/en/class.xmldiff-memory.php)— XMLDiff \\ Memory类 * [XMLDiff \\ Memory :: diff](https://www.php.net/manual/en/xmldiff-memory.diff.php)—[区分](https://www.php.net/manual/en/xmldiff-memory.diff.php)两个XML文档 * [XMLDiff \\ Memory :: merge-](https://www.php.net/manual/en/xmldiff-memory.merge.php)生成合并的XML文档 * [XMLDiff \\ File](https://www.php.net/manual/en/class.xmldiff-file.php)— XMLDiff \\ File类 * [XMLDiff \\ File :: diff](https://www.php.net/manual/en/xmldiff-file.diff.php)—[区分](https://www.php.net/manual/en/xmldiff-file.diff.php)两个XML文件 * [XMLDiff \\ File :: merge-](https://www.php.net/manual/en/xmldiff-file.merge.php)生成合并的XML文档