]> granicus.if.org Git - php/commitdiff
foreach() syntax has changed
authorAndi Gutmans <andi@php.net>
Thu, 8 Apr 1999 04:11:23 +0000 (04:11 +0000)
committerAndi Gutmans <andi@php.net>
Thu, 8 Apr 1999 04:11:23 +0000 (04:11 +0000)
Zend/ZEND_CHANGES

index 7ebb7e4afec3f34ffdf95f82c8e24b8c2a1ba3cc..0c144e2d5c520aff4ca98675672b9c25de361f78 100644 (file)
@@ -49,8 +49,8 @@ features:
   explanation - you can now call functions before they're declared!
 * Added here-docs support.
 * Added foreach.  Two syntaxes supported:
-   foreach($val in array_expr) statement
-   foreach($key, $val in array_expr) statement
+   foreach(array_expr as $val) statement
+   foreach(array_expr as $key => $val) statement
 * A true unset() implementation.  A variable or element that is unset(), is now
   sent to oblivion in its entirely, no trace remains from it.
 * Output buffering support!  Use ob_start() to begin output buffering, ob_end_flush()