cvs: phpdoc-zh /reference/var/functions var-export.xml
| From: | Krazy Nio | Date: | Sat, 14 Jun 2003 14:25:08 +0000 |
| Subject: | cvs: phpdoc-zh /reference/var/functions var-export.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1511@lists.php.net to get a copy of this message | ||
nio Sat Jun 14 10:25:08 2003 EDT
Added files:
/phpdoc-zh/reference/var/functions var-export.xml
Log:
Add file
Index: phpdoc-zh/reference/var/functions/var-export.xml
+++ phpdoc-zh/reference/var/functions/var-export.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: nio $ -->
<!-- EN-Revision: 1.2 Maintainer: nio Status: ready -->
<!-- splitted from ./en/functions/var.xml, last change in rev 1.6 -->
<refentry id="function.var-export">
<refnamediv>
<refname>var_export</refname>
<refpurpose>Êä³ö»ò·µ»ØÒ»¸ö±äÁ¿µÄ×Ö·û´®±íʾ</refpurpose>
</refnamediv>
<refsect1>
<title>ÃèÊö</title>
<methodsynopsis>
<type>mixed</type><methodname>var_export</methodname>
<methodparam><type>mixed</type><parameter>expression</parameter></methodparam>
<methodparam
choice="opt"><type>bool</type><parameter>return</parameter></methodparam>
</methodsynopsis>
<simpara>
´Ëº¯Êý·µ»Ø¹ØÓÚ´«µÝ¸ø¸Ãº¯ÊýµÄ±äÁ¿µÄ½á¹¹ÐÅÏ¢£¬ËüºÍ
<function>var_dump</function>
ÀàËÆ£¬²»Í¬µÄÊÇÆä·µ»ØµÄ±íʾÊǺϷ¨µÄ
PHP ´úÂë¡£
</simpara>
<simpara>
Äú¿ÉÒÔͨ¹ý½«º¯ÊýµÄµÚ¶þ¸ö²ÎÊýÉèÖÃΪ
&true;£¬´Ó¶ø·µ»Ø±äÁ¿µÄ±íʾ¡£
</simpara>
<simpara>
±È½Ï <function>var_export</function> ºÍ
<function>var_dump</function>.
</simpara>
<para>
<informalexample>
<programlisting role="php">
<![CDATA[
<pre>
<?php
$a = array (1, 2, array ("a", "b", "c"));
var_export ($a);
/* Êä³ö£º
array (
0 => 1,
1 => 2,
2 =>
array (
0 => 'a',
1 => 'b',
2 => 'c',
),
)
*/
$b = 3.1;
$v = var_export($b, TRUE);
echo $v;
/* Êä³ö£º
3.1
*/
?>
</pre>
]]>
</programlisting>
</informalexample>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->