From 3aa550f0bf8583e9250562459e3d0d256f051e67 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 6 Aug 2004 08:32:48 +0000 Subject: [PATCH] WS git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@165496 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 49 ++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index 2de073da1f..f5761b3d17 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -25,7 +25,7 @@ ]]> @@ -242,7 +242,8 @@ endif; @@ -268,7 +269,10 @@ while (expr) statement @@ -386,7 +390,8 @@ do { @@ -471,7 +476,10 @@ for ($i = 1; $i <= 10; print $i, $i++); @@ -490,8 +498,10 @@ for (expr1; expr2; expr3): statement; ...; endfor; $value) statement +foreach (array_expression as $value) + statement +foreach (array_expression as $key => $value) + statement ]]> @@ -550,8 +560,8 @@ foreach (array_expression as $key => $value) statement \n"; } @@ -569,7 +579,7 @@ foreach ($arr as $value) { \n"; } @@ -663,7 +673,7 @@ foreach (array(1, 2, 3, 4, 5) as $v) { @@ -1071,11 +1082,11 @@ function profile($dump = FALSE) // Return the times stored in profile, then erase it if ($dump) { $temp = $profile; - unset ($profile); - return ($temp); + unset($profile); + return($temp); } - $profile[] = microtime (); + $profile[] = microtime(); } // Set up a tick handler @@ -1092,7 +1103,7 @@ declare(ticks=2) { } // Display the data stored in the profiler -print_r(profile (TRUE)); +print_r(profile(TRUE)); ?> ]]>