Convenience method to get/set a global variable
Parameters | |||
---|---|---|---|
string
|
$key |
The global variable name |
# |
mixed
|
$value = '' |
The value to set to the global variable; if it is not given, it is Getter method. |
# |
Returns | |
---|---|
mixed
|
The value of the global variable |