From f76b667a2915f287b8f1b53a576b069e449f9244 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Fri, 16 Mar 2001 20:19:31 +0000 Subject: [PATCH] Fix typo in second example of foreach git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@43714 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index 10f9881819..efd393fe7c 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -526,7 +526,7 @@ $a = array (1, 2, 3, 17); $i = 0; /* for illustrative purposes only */ foreach($a as $v) { - print "\$a[$i] => $k.\n"; + print "\$a[$i] => $v.\n"; } /* foreach example 3: key and value */