<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.password.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.password-get-info.php',
    1 => 'password_get_info',
    2 => '返回指定散列（hash）的相关信息',
  ),
  'up' => 
  array (
    0 => 'ref.password.php',
    1 => '密码散列算法函数',
  ),
  'prev' => 
  array (
    0 => 'function.password-algos.php',
    1 => 'password_algos',
  ),
  'next' => 
  array (
    0 => 'function.password-hash.php',
    1 => 'password_hash',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/password/functions/password-get-info.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.password-get-info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">password_get_info</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">password_get_info</span> &mdash; <span class="dc-title">返回指定散列（hash）的相关信息</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.password-get-info-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>password_get_info</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$hash</code></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   如果传入的散列值（hash）是由 <span class="function"><a href="function.password-hash.php" class="function">password_hash()</a></span> 支持的算法生成的，
   这个函数就会返回关于此散列的信息数组。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.password-get-info-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">hash</code></dt>
    <dd>
     <p class="para">
      一个由 <span class="function"><a href="function.password-hash.php" class="function">password_hash()</a></span> 创建的散列值。
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.password-get-info-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   返回三个元素的关联数组：
   <ul class="itemizedlist">
    <li class="listitem">
     <span class="simpara">
       <code class="literal">algo</code>， 匹配
       <a href="password.constants.php" class="link">密码算法的常量</a>
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      <code class="literal">algoName</code>，人类可读的算法名称
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      <code class="literal">options</code>，调用 <span class="function"><a href="function.password-hash.php" class="function">password_hash()</a></span> 时提供的选项。
     </span>
    </li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>