Password Hash

This Is The Most Secure Way To Hash Password .
Salt Is Generated Automatically .
Cost Is 10 Which Is Secure And Fast Enough .

function secured_hash($input)
$output = password_hash($input,PASSWORD_DEFAULT);
return $output;

$input ---> Is The String You Want To Hash

PASSWORD_DEFAULT ---> It Means Use The Lastest And Strongest Algorithm To Hash

$output ---> Is The Hashed String You Can Store In Your Database