From 13a99b7d5454c5ab1c56c651cb016dea50e0f9cb Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Sat, 23 Jun 2001 17:31:12 +0000 Subject: [PATCH] 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 --- functions/var.xml | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/functions/var.xml b/functions/var.xml index 27a605e099..f7247789c1 100644 --- a/functions/var.xml +++ b/functions/var.xml @@ -1271,10 +1271,12 @@ foo(); void var_dump mixed expression + mixed expression + ... - 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. @@ -1287,8 +1289,36 @@ foo(); <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>