Method: g::set

Sets a global by key

Info

Syntax

g::set($key, $value=null)

Parameters

Example


g::set('var1', 'some value');

// later
echo g::get('var1');
// output: 'some value'