It depends on your requirement. If you don't want $var to be visible outside, then declare inside the loop.
The great pleasure in my life is doing what people say you cannot do.
In reply to Re: Placement of "my"
by lakshmananindia
in thread Placement of "my"
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |