How could I get the for loop to use the predeclared $i instead of using a local one?
You don't, and that's a good thing. (You mean "foreach loop" there, I presume.)
| [reply] |
Well I have run into occasions where I would like use a previously declared variable as the loop variable in a situation like this. I know I can always just set a predeclared variable to be equal to the local loop variable, but that seems messier to me.
Don't get me wrong I really like the local loop variable feature I would just like to "turn it off" occasionally. I probably don't understand some basic concept here most likely...
| [reply] [d/l] |
| [reply] |