in reply to Array mysteriously disappears on loop exit...
But that said, using global like this is usually an indicator of poorly factored design. Instead design your code so that you return the array instead of manipulate it. That kind of design tends to be more flexible and ages much better.
|
---|