How to make a global variable usable in a function
// outside function declaration $globalvar = "some value"; function SomeFunction(...) { global $globalvar; // use $globalvar as a global variable, declared elsewhere // here the value of $globalvar is "some value" .. }
Please enable JavaScript to view the
comments powered by Disqus.