displaying user info

I have recently successfully displayed my users avatars (with or without all of their information). I used this PHP


$users = get_entities_from_metadata('icontime', '', 'user', '', 0, $users_max);

        foreach($users as $user)


//with info menu

echo elgg_view("profile/icon",array('entity' => $user, 'size' => 'small'));

// without info

echo elgg_view("profile/icon",array('entity' => $user, 'size' => 'small', 'override' => 'true'));


But, I am totally confused how I display just certain elements from the user, like their name for instance, or their profile info, or anything really. I know it is a newbie question, but the help would be greatly appreciated.