Display the drop-down list

password_hash()

« parse_url | password_verify »
<?php
$string 
password_hash (
    
// string $password
    
?// integer $algo
    
  // [array $options]
);
?>
Result
$string = '$2y$10$fw7WBted2F6EAmRZcAD8w..oFs5EtleTevO5Jb8PrakPRoZvzQz/G'
Examples
#1 password_hash  ("rasmuslerdorf",
 
PASSWORD_DEFAULT)
#2 password_hash  ("rasmuslerdorf",
 
PASSWORD_BCRYPT,
 [
"cost" => 12])
#3 password_hash  ("test",
 
PASSWORD_BCRYPT,
 [
"cost" => 8])
See also
crypt, password_verify