<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Returns information about the given hash</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.password.html">Password Hashing Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.password-hash.html">password_hash</a></div> <div class="up"><a href="ref.password.html">Password Hashing Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.password-get-info" class="refentry"> <div class="refnamediv"> <h1 class="refname">password_get_info</h1> <p class="verinfo">(PHP 5 >= 5.5.0)</p><p class="refpurpose"><span class="refname">password_get_info</span> — <span class="dc-title">Returns information about the given hash</span></p> </div> <div class="refsect1 description" id="refsect1-function.password-get-info-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><strong>password_get_info</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$hash</code></span> )</div> <p class="para rdfs-comment"> When passed in a valid hash created by an algorithm supported by <span class="function"><a href="function.password-hash.html" class="function">password_hash()</a></span>, this function will return an array of information about that hash. </p> </div> <div class="refsect1 parameters" id="refsect1-function.password-get-info-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <span class="term"><em><code class="parameter">hash</code></em></span> <dd> <p class="para"> A hash created by <span class="function"><a href="function.password-hash.html" class="function">password_hash()</a></span>. </p> </dd> </dt> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-function.password-get-info-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns an associative array with three elements: <ul class="itemizedlist"> <li class="listitem"> <span class="simpara"> <em>algo</em>, which will match a <a href="password.constants.html" class="link">password algorithm constant</a> </span> </li> <li class="listitem"> <span class="simpara"> <em>algoName</em>, which has the human readable name of the algorithm </span> </li> <li class="listitem"> <span class="simpara"> <em>options</em>, which includes the options provided when calling <span class="function"><a href="function.password-hash.html" class="function">password_hash()</a></span> </span> </li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.password.html">Password Hashing Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.password-hash.html">password_hash</a></div> <div class="up"><a href="ref.password.html">Password Hashing Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>