I'm trying to use a global array and i have to manipulate it inside a function, but every time i start the function again it is empty. I'm using array_push to add elements (strings) to the array.
The array is declared outside the function and inside the function I have 'global $array;' in the begining.
Any suggestions?
Thanks a lot.
The array is declared outside the function and inside the function I have 'global $array;' in the begining.
Any suggestions?
Thanks a lot.