• PHP Video Tutorials

PHP - password_algos() Function



The password_algos() function can get the available password hashing algorithm IDs.

Syntax

password_algos( void ) : array

The password_algos() function can return a complete list of all registered password hashing algorithm IDs as an array of strings.

Example

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

Output

Array
(
    [0] => 2y
    [1] => argon2i
    [2] => argon2id	
)
php_function_reference.htm
Advertisements