Most people when hashing password's in PHP use the md5() function, which is now considered highly insecure. I'll show you a way to hash password's and it takes about the same amount of time as using md5(). This function is called password_hash(), and to verify the password's you will use password_verify(). I don't recommend copying my form section, as it could leave vulnerabilities in your site, you may want to research creating safe forms.
First, we have to get the users password via HTML form, considering you're familiar with HTML forms and sending users input to PHP. Then we will echo the entered password hashed. There's two constants I'll show that you can use when hashing your password.
Any questions, just ask.