|
Array in function
Basically I have a global array which I use in a function and in this function values are assigned to the array depending on what the user enters.
I then need to use the array again with the assigned values, in another function. However I don't believe the assigned values will be in the array because of variable scope.
Is this correct, and if so how do I keep the values within the array after the function ends?
Thanks.
|