Jump to content
Larry Ullman's Book Forums

Recommended Posts

Great book, thanks Larry!


I have a query relating to line 34 of script 18.10:


$ph = password_hash($p);


Does the 'password_hash' function require the second parameter of 'PASSWORD_DEFAULT'?


Resulting in line 34 needing to be:


$ph = password_hash($p, PASSWORD_DEFAULT);



Link to comment
Share on other sites


  • Create New...