name_from_id (function)

Return to Knowledgebase

Purpose

Returns the username when given a user's id

Location

users/helpers/helpers.php

Parameters

This function does not take any arguments

Example

echo name_from_id(1);

Further Documentation:

This is less flexible than the echoUser function, but it may be useful. It automatically capitalizes the first letter. prints Admin