I have given you some examples that are used to encrypt the password in PHP:
1.Using md5() we can encrypt the password.
$password = crypt('ownpassword');
echo "Password checked!";
Above given both method only use to encrypt the password,Not used to decrypt password.