显示下拉菜单

password_hash()

« parse_url | password_verify »
<?php
$string 
password_hash (
    
// string $password
    
?// integer $algo
    
  // [array $options]
);
?>
结果
$string = '$2y$10$IVoeuUCgT73JeUOMrJOusu9LcwGZkskd5wes5UmGrjATQUIVMVNsO'
示例
#1 password_hash  ("rasmuslerdorf",
 
PASSWORD_DEFAULT)
#2 password_hash  ("rasmuslerdorf",
 
PASSWORD_BCRYPT,
 [
"cost" => 12])
#3 password_hash  ("test",
 
PASSWORD_BCRYPT,
 [
"cost" => 8])
另请参阅
crypt, password_verify