Previous Page
dump()

Solar_Session
get()

Next Page
getFlash()

get()

public mixed get ( string $key, mixed $val default NULL )

Gets a normal value by key, or an alternative default value if the key does not exist.

Parameters

  • (string) $key: The data key.
  • (mixed) $val: If key does not exist, returns this value instead. Default null.

Returns

  • (mixed) The value.

Description

Gets a normal value by key, or an alternative default value if the key does not exist.