I have a page that is pretty complex and I have ended up having to pass a number of viariables through quite a few functions etc.
Some of those don't use the variable but a function call inside of it requires the variable to be passed in.
I'm just wondering what is the best way to go about this?
Should I be passing it right through, using a global variable (which I'm reading isn't a good idea) or are there other options?
Presumably there is a best practice for this?
Thanks in advance.