password_algos

(PHP 7 >= 7.4.0)

password_algosGet available password hashing algorithm IDs

说明

password_algos ( void ) : array

Returns a complete list of all registered password hashing algorithm IDs as an array of strings.

参数

此函数没有参数。

返回值

Returns the available password hashing algorithm IDs.

范例

Example #1 Basic password() usage

<?php
print_r
(password_algos());
?>

以上例程的输出类似于:

Array
(
    [0] => 2y
    [1] => argon2i
    [2] => argon2id
)
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top