I am having this little problem :
I want to use the variables I use in one function to be used in another function (on the same page btw).
However all vars used in a function are deleted after the function is finished.
By searching in the manual I found that using static vars would solve my problem.
However they do not.
I am getting the same result as if the vars never existed.
I think it may have something to do with my includes.
It works like this :
page
-> include1. -> this include houses the function that needs the vars from the other functions
In include1 is another include (includes in includes) that houses the functions where i need the vars from.
However defining the vars "static" in the deepest include apparantly doesn't make then accessible to the upper include.
Using global in the upper include doesn't work.
Why not?
BTW i am using php3
(sorry if this is a bit chaotic explanation of the problem)