cvs: phpdoc /en/language control-structures.xml
| From: | Derick Rethans | Date: | Tue, 14 Sep 2004 08:28:01 +0000 |
| Subject: | cvs: phpdoc /en/language control-structures.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969364043@lists.php.net to get a copy of this message | ||
derick Tue Sep 14 04:28:01 2004 EDT
Modified files:
/phpdoc/en/language control-structures.xml
Log:
- Re-initialize array, otherwise the example spits out:
Warning: Invalid argument supplied for foreach() in /tmp/foreach-test.php on line 42
http://cvs.php.net/diff.php/phpdoc/en/language/control-structures.xml?r1=1.107&r2=1.108&ty=u
Index: phpdoc/en/language/control-structures.xml
diff -u phpdoc/en/language/control-structures.xml:1.107
phpdoc/en/language/control-structures.xml:1.108
--- phpdoc/en/language/control-structures.xml:1.107 Sun Aug 22 11:36:09 2004
+++ phpdoc/en/language/control-structures.xml Tue Sep 14 04:28:00 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.107 $ -->
+<!-- $Revision: 1.108 $ -->
<chapter id="language.control-structures">
<title>Control Structures</title>
@@ -651,7 +651,7 @@
}
/* foreach example 4: multi-dimensional arrays */
-
+$a = array();
$a[0][0] = "a";
$a[0][1] = "b";
$a[1][0] = "y";