How to use playerPrefs

Hello all, im new to playerPrefs and Im working on a thing that lets players to choose their name from start, so next time they dont have to. Using the playerPrefs function, and can anyone show how it can be done, and some examples explaining how to use the function