SyntaxFix
Write A Post
Hire A Developer
Questions
Let's think a little different, You can use static parameters:
class global { static $foo = "bar"; }
And you can use and modify it every where you like, like:
function func() { echo global::$foo; }