jeroen          Sat Jun 23 19:31:12 2001 EDT

  Modified files:              
    /phpdoc/en/functions        var.xml 
  Log:
  Documented that var_dump accepts multiple parameters.
  Added example to var_dump
  
  
Index: phpdoc/en/functions/var.xml
diff -u phpdoc/en/functions/var.xml:1.52 phpdoc/en/functions/var.xml:1.53
--- phpdoc/en/functions/var.xml:1.52    Sat Jun 23 19:26:18 2001
+++ phpdoc/en/functions/var.xml Sat Jun 23 19:31:12 2001
@@ -1271,10 +1271,12 @@
      <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 @@
       <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>


Reply via email to