Method: g::get

Gets an global value by key

Info

Syntax

g::get($key=null, $default=null)

Parameters

Return (mixed)

Example


g::get('var1', 'some other value');
// returns 'some value' if var1 has been set earlier, otherwise returns 'some other value'