How to get name of user?

How to get the name of user in text only with code?

The question is not clear enough. Please elaborate.