array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'hash.installation.php', 1 => '安装', ), 'up' => array ( 0 => 'hash.setup.php', 1 => '安装/配置', ), 'prev' => array ( 0 => 'hash.requirements.php', 1 => '需求', ), 'next' => array ( 0 => 'hash.configuration.php', 1 => '运行时配置', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/hash/setup.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
从 PHP 5.1.2 开始,哈希扩展是内置的,不需要外部库, 并且默认是启用的。
可以通过 --disable-hash 参数来禁用此扩展。 对于更早版本的 PHP,可以通过安装 » PECL 模块 来使用哈希扩展。
从 PHP 7.4.0 开始,Hash 扩展成为 PHP 的核心扩展,所以可以直接使用。