From 60a90ca31e72154b686d24560f761ad35d114e21 Mon Sep 17 00:00:00 2001 From: Ron Chmara Date: Mon, 11 Sep 2000 03:57:23 +0000 Subject: [PATCH] Added foreach/endforeach as per errata. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@32436 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index d9add40ce0..e0616022cb 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -154,12 +154,13 @@ if ($a > $b) { Alternative syntax for control structures PHP offers an alternative syntax for some of its control - structures; namely, if, - while, for, and - switch. In each case, the basic form of the - alternate syntax is to change the opening brace to a colon (:) and - the closing brace to endif;, - endwhile;, endfor;, or + structures; namely, if, + while, for, + foreach, and switch. + In each case, the basic form of the alternate syntax is to change + the opening brace to a colon (:) and the closing brace to + endif;, endwhile;, + endfor;, endforeach;, or endswitch;, respectively.