Documented that var_dump accepts multiple parameters.

Added example to var_dump


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@50052 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jeroen van Wolffelaar 2001-06-23 17:31:12 +00:00
parent a466136fe7
commit 13a99b7d54

View file

@ -1271,10 +1271,12 @@ foo();
<funcprototype>
<funcdef>void <function>var_dump</function></funcdef>
<paramdef>mixed <parameter>expression</parameter></paramdef>
<paramdef>mixed <parameter><optional>expression</optional></parameter></paramdef>
<paramdef><parameter><optional>...</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
<simpara>
This function returns structured information about an expression
This function returns structured information about one or more expressions
that includes its type and value. Arrays are explored
recursively with values indented to show structure.
</simpara>
@ -1287,8 +1289,36 @@ foo();
<programlisting role="php">
&lt;pre&gt;
&lt;?php
$a = array (1, 2, array ("a", "b", "c"));
var_dump ($a);
$a = array (1, 2, array ("a", "b", "c"));
var_dump ($a);
/* output:
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);
/* output:
float(3.1)
bool(true)
*/
?&gt;
&lt;/pre&gt;
</programlisting>