in reply to array element as foreach iterator
Yes, you can't do that. Why would you want to? Ultimately what are you trying to accomplish? There's probably a better way.
Dave