Mozilla Skin
BLOG     |     MY EYEOS     |     PROFESSIONAL SERVICES     |     OPEN SOURCE PLATFORM

Lib eyeSessions getArrayValueByKey

From eyeOS Wiki

Contents

Syntax

eyeSessions('getArrayValueByKey', array($arrayName, $position))

or

reqLib('eyeSessions', 'getArrayValueByKey', array($arrayName, $position))

Description

Retrieves the value of the array element referred by position in the session variable arrayName.

Arguments

arrayName: name of the array session variable.

position: key of the element.

Return values

The value of 'position' in the array 'arrayName'.

Examples

eyeSessions('getArrayValueByKey', array('userSettings', 'creationDate'));