I have an array called $configuration its got around 50 of my sites configurations in. I need to access these from functions. I am using global $configuration But thats not working. How can I make all my $configuration array accessible accross every function I want.
How is it not working? Using global $configuration should allow its use inside a function That or just pile them into sessions, I sometimes use the session array for things i need in and out of functions
If you have $configuration definition outside the function, the global keyword should work. If you need to publish variable as global inside the function, you can use the construction like this: $GLOBALS['configuration'] = array('your','array','members'); PHP:
I managed to get it working, I dont know what was wrong, but what I thought I was doing was right but wasnt working. Moved some things and it worked. Glad to know its all okay