Method: g::set
Sets a global by key
Info
Syntax
g::set($key, $value=null)
Parameters
- $key (string) The key to define
- $value (mixed) The value for the passed key
Example
g::set('var1', 'some value');
// later
echo g::get('var1');
// output: 'some value'