SproutCMS

This is the code documentation for the SproutCMS project

function get()

Get a variable. Access to sub-arrays is supported with key.subkey.

Usage

mixed Session::get ( [ string $key [, mixed $default ]] );

Arguments

  1. string $key = FALSE
    variable key
  2. mixed $default = FALSE
    default value returned if variable does not exist

Return value

  • mixed
    Variable data if key specified, otherwise array containing all session data.