Forgot password [PHP]

Is there any other function besides MD5 that can encrypt a password that is going to be stored in the database? That is because I want the password to be able to decrypt incase the user forgets his or her password. Thanks in advance.