Hi ravi45722
Just to set you straight - that's what it's supposed to do...
There's a very subtle difference between declaring your iterator inside and outside the loop.
My advice would be rename your iterator variables to avoid confusion with lexicals outside your loops...
Cheers,
Shadowsong
In reply to Re: Variable in a foreach loop
by shadowsong
in thread Variable in a foreach loop
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |