mgd_get_person

(Midgard 1.4.2 'Bifrost')

mgd_get_person -- Get a person

Description

object mgd_get_person (variant id)

Minimum version: Midgard 1.0

Gets information about the person record with id id. This ID can be numeric, in which case it represents the user ID, or a string value, in which case it represents the username.

Returns an object describing the record if successful. Returns FALSE on failure.


 $id = 17;
 $person = mgd_get_person( $id );
 echo $person->firstname . " " $person->lastname . "has  username:"
    . $person->username;
?>