diff --git a/language/control-structures.xml b/language/control-structures.xml index eca7d85eae..514b0bc0e0 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -532,7 +532,8 @@ foreach (array_expression as $key => $value) - Also note that foreach operates on a copy of + Unless the array is referenced, + foreach operates on a copy of the specified array and not the array itself. Therefore, the array pointer is not modified as with the each construct, and changes to the array