derick Fri Nov 24 09:31:08 2006 UTC
Modified files:
/phpdoc/en/reference/var/functions var-export.xml
Log:
- Clarify var_export and circular references.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/var/functions/var-export.xml?r1=1.13&r2=1.14&diff_format=u
Index: phpdoc/en/reference/var/functions/var-export.xml
diff -u phpdoc/en/reference/var/functions/var-export.xml:1.13
phpdoc/en/reference/var/functions/var-export.xml:1.14
--- phpdoc/en/reference/var/functions/var-export.xml:1.13 Fri Mar 10
03:45:54 2006
+++ phpdoc/en/reference/var/functions/var-export.xml Fri Nov 24 09:31:08 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
<!-- splitted from ./en/functions/var.xml, last change in rev 1.6 -->
<refentry id="function.var-export">
<refnamediv>
@@ -207,14 +207,23 @@
function.
</para>
</note>
+ <note>
+ <para>
+ <function>var_export</function> does not handle circular references as
+ it would be close to impossible to generate parsable PHP code for that.
+ If you want to do something with the full representation of an array
+ or object, use <function>serialize</function>.
+ </para>
+ </note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
- <member><function>var_dump</function></member>
<member><function>print_r</function></member>
+ <member><function>serialize</function></member>
+ <member><function>var_dump</function></member>
</simplelist>
</para>
</refsect1>