How-to articles, tricks, and solutions about SCOPE
Access a global variable in a PHP function
In PHP, you can access a global variable within a function by using the global keyword.
In PHP, you can access a global variable within a function by using the global keyword.