Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 6376

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!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>Decodes a hexadecimally encoded binary string</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.sodium-crypto-stream.html">sodium_crypto_stream</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.sodium-increment.html">sodium_increment</a></div>
 <div class="up"><a href="ref.sodium.html">Sodium Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.sodium-hex2bin" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">sodium_hex2bin</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.2.0)</p><p class="refpurpose"><span class="refname">sodium_hex2bin</span> &mdash; <span class="dc-title">Decodes a hexadecimally encoded binary string</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.sodium-hex2bin-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>sodium_hex2bin</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$hex</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$ignore</code></span>
  ] )</div>

  <p class="para rdfs-comment">
   Decodes a hexadecimally encoded binary string.
  </p>
  <p class="para">
   Like <span class="function"><a href="function.sodium-bin2hex.html" class="function">sodium_bin2hex()</a></span>, <span class="function"><strong>sodium_hex2bin()</strong></span>
   is resistant to side-channel attacks while <span class="function"><a href="function.hex2bin.html" class="function">hex2bin()</a></span> is not.
  </p> 

 </div>


 <div class="refsect1 parameters" id="refsect1-function.sodium-hex2bin-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   
    <dt>
<code class="parameter">hex</code></dt>

    <dd>

     <p class="para">
      Hexadecimal representation of data.
     </p>
    </dd>

   
   
    <dt>
<code class="parameter">ignore</code></dt>

    <dd>

     <p class="para">
      Optional string argument for characters to ignore.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.sodium-hex2bin-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the binary representation of the given <code class="parameter">hex</code> data.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.sodium-crypto-stream.html">sodium_crypto_stream</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.sodium-increment.html">sodium_increment</a></div>
 <div class="up"><a href="ref.sodium.html">Sodium Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>