in reply to foreach problem

Additionally to what has been said already: