<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">&lt;?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.xmldiff-memory.inc";
$setup = array (
  'home' =&gt; 
  array (
    0 =&gt; 'index.php',
    1 =&gt; 'PHP Manual',
  ),
  'head' =&gt; 
  array (
    0 =&gt; 'UTF-8',
    1 =&gt; 'en',
  ),
  'this' =&gt; 
  array (
    0 =&gt; 'xmldiff-memory.diff.php',
    1 =&gt; 'XMLDiff\\Memory::diff',
  ),
  'up' =&gt; 
  array (
    0 =&gt; 'class.xmldiff-memory.php',
    1 =&gt; 'XMLDiff\\Memory',
  ),
  'prev' =&gt; 
  array (
    0 =&gt; 'class.xmldiff-memory.php',
    1 =&gt; 'XMLDiff\\Memory',
  ),
  'next' =&gt; 
  array (
    0 =&gt; 'xmldiff-memory.merge.php',
    1 =&gt; 'XMLDiff\\Memory::merge',
  ),
  'alternatives' =&gt; 
  array (
  ),
  'source' =&gt; 
  array (
    'lang' =&gt; 'en',
    'path' =&gt; 'reference/xmldiff/xmldiff-memory/diff.xml',
  ),
  'history' =&gt; 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?&gt;
&lt;div id="xmldiff-memory.diff" class="refentry"&gt;
 &lt;div class="refnamediv"&gt;
  &lt;h1 class="refname"&gt;XMLDiff\Memory::diff&lt;/h1&gt;
  &lt;p class="verinfo"&gt;(PECL xmldiff &amp;gt;= 0.8.0)&lt;/p&gt;&lt;p class="refpurpose"&gt;&lt;span class="refname"&gt;XMLDiff\Memory::diff&lt;/span&gt; &amp;mdash; &lt;span class="dc-title"&gt;Diff two XML documents&lt;/span&gt;&lt;/p&gt;

 &lt;/div&gt;

 &lt;div class="refsect1 description" id="refsect1-xmldiff-memory.diff-description"&gt;
  &lt;h3 class="title"&gt;Description&lt;/h3&gt;
  &lt;div class="methodsynopsis dc-description"&gt;
   &lt;span class="modifier"&gt;public&lt;/span&gt; &lt;span class="methodname"&gt;&lt;strong&gt;XMLDiff\Memory::diff&lt;/strong&gt;&lt;/span&gt;(&lt;span class="methodparam"&gt;&lt;span class="type"&gt;&lt;a href="language.types.string.php" class="type string"&gt;string&lt;/a&gt;&lt;/span&gt; &lt;code class="parameter"&gt;$from&lt;/code&gt;&lt;/span&gt;, &lt;span class="methodparam"&gt;&lt;span class="type"&gt;&lt;a href="language.types.string.php" class="type string"&gt;string&lt;/a&gt;&lt;/span&gt; &lt;code class="parameter"&gt;$to&lt;/code&gt;&lt;/span&gt;): &lt;span class="type"&gt;&lt;a href="language.types.string.php" class="type string"&gt;string&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;

  &lt;p class="para rdfs-comment"&gt;
   Diff two strings containing XML documents and produce the diff information.
  &lt;/p&gt;
 &lt;/div&gt;


 &lt;div class="refsect1 parameters" id="refsect1-xmldiff-memory.diff-parameters"&gt;
  &lt;h3 class="title"&gt;Parameters&lt;/h3&gt;
  &lt;dl&gt;
   
    &lt;dt&gt;&lt;code class="parameter"&gt;from&lt;/code&gt;&lt;/dt&gt;
    &lt;dd&gt;
     &lt;p class="para"&gt;
      Source XML document.     
     &lt;/p&gt;
    &lt;/dd&gt;
   
   
    &lt;dt&gt;&lt;code class="parameter"&gt;to&lt;/code&gt;&lt;/dt&gt;
    &lt;dd&gt;
     &lt;p class="para"&gt;
      Target XML document.
     &lt;/p&gt;
    &lt;/dd&gt;
   
  &lt;/dl&gt;
 &lt;/div&gt;


 &lt;div class="refsect1 returnvalues" id="refsect1-xmldiff-memory.diff-returnvalues"&gt;
  &lt;h3 class="title"&gt;Return Values&lt;/h3&gt;
  &lt;p class="para"&gt;
   String with the XML document containing the diff information or NULL. 
  &lt;/p&gt;
 &lt;/div&gt;



&lt;/div&gt;&lt;?php manual_footer($setup); ?&gt;</pre></body></html>