mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
a466136fe7
commit
13a99b7d54
1 changed files with 33 additions and 3 deletions
|
@ -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">
|
||||
<pre>
|
||||
<?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)
|
||||
|
||||
*/
|
||||
?>
|
||||
</pre>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue