(PHP 7 >= 7.4.0, PHP 8)
password_algos — Get available password hashing algorithm IDs
Returns a complete list of all registered password hashing algorithm IDs as an array of strings.
此函數(shù)沒(méi)有參數(shù)。
Returns the available password hashing algorithm IDs.
示例 #1 Basic password() usage
<?php
print_r(password_algos());
?>
以上例程的輸出類(lèi)似于:
Array ( [0] => 2y [1] => argon2i [2] => argon2id )