PHP-Fusion Development

fusion_get_username()

Fetch user name by ID.

Versions: 9

fusion_get_username( int $user_id ) : string

Parameters

$user_id (int) (Required) User ID.

Return Values

(string) Username.

Examples

echo fusion_get_username(1);
// admin