global variables in php not working as expected
- by Josh Smeaton
I'm having trouble with global variables in php. I have a $screen var set in one file, which requires another file that calls an initSession() defined in yet another file. The initSession() declares "global $screen" and then processes $screen further down using the value set in the very first script.
How is this possible?
To make things more…