array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.crypt-preferred-method.php', 1 => 'crypt_preferred_method', 2 => 'Get the prefix of the preferred hash method', ), 'up' => array ( 0 => 'ref.xpass.php', 1 => 'Xpass 函数', ), 'prev' => array ( 0 => 'function.crypt-gensalt.php', 1 => 'crypt_gensalt', ), 'next' => array ( 0 => 'refs.database.php', 1 => '数据库扩展', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/xpass/functions/crypt-preferred-method.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL xpass >= 1.1.0)
crypt_preferred_method — Get the prefix of the preferred hash method
此函数没有参数。
Returns a string with the prefix, or null
in case of an error.
示例 #1 A crypt_preferred_method() example
<?php
var_dump(crypt_preferred_method());
?>
以上示例会输出:
string(3) "$y$"