Declare the variable outside the foreach loop, then you can access it it outside the loop.
In reply to Re: How to extent the scope of local variable outside block??
by moritz
in thread How to extent the scope of local variable outside block??
by sumathigokul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |