diff --git a/language/control-structures.xml b/language/control-structures.xml index 0708e3f1d2..78a64ff917 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -517,7 +517,11 @@ foreach(array_expression as $key => $value) statement the specified array, not the array itself, therefore the array pointer is not modified as with the each construct and changes to the array element returned are not - reflected in the original array. + reflected in the original array. However, the internal pointer + of the original array is advanced with + the processing of the array. Assuming the foreach loop runs + to completion, the array's internal pointer will be at the + end of the array.