cvs: phpdoc-zh /reference/var/functions var-dump.xml
| From: | Krazy Nio | Date: | Sat, 14 Jun 2003 14:14:53 +0000 |
| Subject: | cvs: phpdoc-zh /reference/var/functions var-dump.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1510@lists.php.net to get a copy of this message | ||
nio Sat Jun 14 10:14:53 2003 EDT
Added files:
/phpdoc-zh/reference/var/functions var-dump.xml
Log:
Add file
Index: phpdoc-zh/reference/var/functions/var-dump.xml
+++ phpdoc-zh/reference/var/functions/var-dump.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: nio $ -->
<!-- EN-Revision: 1.4 Maintainer: nio Status: ready -->
<!-- splitted from ./en/functions/var.xml, last change in rev 1.84 -->
<refentry id="function.var-dump">
<refnamediv>
<refname>var_dump</refname>
<refpurpose>´òÓ¡±äÁ¿µÄÏà¹ØÐÅÏ¢</refpurpose>
</refnamediv>
<refsect1>
<title>ÃèÊö</title>
<methodsynopsis>
<type>void</type><methodname>var_dump</methodname>
<methodparam><type>mixed</type><parameter>expression</parameter></methodparam>
<methodparam
choice="opt"><type>mixed</type><parameter>expression</parameter></methodparam>
<methodparam
choice="opt"><parameter>...</parameter></methodparam>
</methodsynopsis>
<simpara>
´Ëº¯ÊýÏÔʾ¹ØÓÚÒ»¸ö»ò¶à¸ö±í´ïʽµÄ½á¹¹ÐÅÏ¢£¬°üÀ¨±í´ïʽµÄÀàÐÍÓëÖµ¡£Êý×齫µÝ¹éÕ¹¿ªÖµ£¬Í¨¹ýËõ½øÏÔʾÆä½á¹¹¡£
</simpara>
&tip.ob-capture;
<simpara>
¿ÉÒԱȽÏһϠ<function>var_dump</function> Óë
<function>print_r</function>¡£
</simpara>
<para>
<example>
<title><function>var_dump</function> ʾÀý</title>
<programlisting role="php">
<![CDATA[
<pre>
<?php
$a = array (1, 2, array ("a", "b", "c"));
var_dump ($a);
/* Êä³ö£º
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
array(3) {
[0]=>
string(1) "a"
[1]=>
string(1) "b"
[2]=>
string(1) "c"
}
}
*/
$b = 3.1;
$c = TRUE;
var_dump($b,$c);
/* Êä³ö£º
float(3.1)
bool(true)
*/
?>
</pre>
]]>
</programlisting>
</example>
</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
-->