USER Methods

details()

Return user details. If no index is passed, the current user's details will be returned.

array details([ int index [, string field ]])

Return

List of available user data

Parameter
Description
indexGet details of user with this user-index
fieldReturns the value of this field only

Get specific data-field of current user

$USER->details($USER->index(), "nick")
RETURN: 'test'

Get current user's complete data

$USER->details()
RETURN: ARRAY [15]