You may have noticed that the following are functionally identical:
참고: Also note that foreach operates on a copy of the specified array, not the array itself, therefore the array pointer is not modified like with the each construct.