<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.bzip2.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.bzdecompress.php',
    1 => 'bzdecompress',
    2 => 'Decompresses bzip2 encoded data',
  ),
  'up' => 
  array (
    0 => 'ref.bzip2.php',
    1 => 'Функції Bzip2',
  ),
  'prev' => 
  array (
    0 => 'function.bzcompress.php',
    1 => 'bzcompress',
  ),
  'next' => 
  array (
    0 => 'function.bzerrno.php',
    1 => 'bzerrno',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/bzip2/functions/bzdecompress.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.bzdecompress" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">bzdecompress</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">bzdecompress</span> &mdash; <span class="dc-title">Decompresses bzip2 encoded data</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.bzdecompress-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>bzdecompress</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$data</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$use_less_memory</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>bzdecompress()</strong></span> decompresses the given string containing
   bzip2 encoded data.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.bzdecompress-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">data</code></dt>
     <dd>
      <p class="para">
       The string to decompress.
      </p>
     </dd>
    
    
     <dt><code class="parameter">use_less_memory</code></dt>
     <dd>
      <p class="para">
       If <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, an alternative decompression algorithm will be used which
       uses less memory (the maximum memory requirement drops to around 2300K) 
       but works at roughly half the speed.
      </p>
      <p class="para">
       See the <a href="https://www.sourceware.org/bzip2/" class="link external">&raquo;&nbsp;bzip2 documentation</a> for more 
       information about this feature.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.bzdecompress-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   The decompressed string, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> or an error number if an error occurred.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.bzdecompress-changelog">
  <h3 class="title">Журнал змін</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версія</th>
      <th>Опис</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       The type of <code class="parameter">use_less_memory</code> has been changed from
       <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> to <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>. Previously, the default value was
       <code class="literal">0</code>.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.bzdecompress-examples">
  <h3 class="title">Приклади</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Приклад #1 Decompressing a String</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$start_str </span><span style="color: #007700">= </span><span style="color: #DD0000">"This is not an honest face?"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$bzstr </span><span style="color: #007700">= </span><span style="color: #0000BB">bzcompress</span><span style="color: #007700">(</span><span style="color: #0000BB">$start_str</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #DD0000">"Compressed String: "</span><span style="color: #007700">;<br />echo </span><span style="color: #0000BB">$bzstr</span><span style="color: #007700">;<br />echo </span><span style="color: #DD0000">"\n&lt;br /&gt;\n"</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$str </span><span style="color: #007700">= </span><span style="color: #0000BB">bzdecompress</span><span style="color: #007700">(</span><span style="color: #0000BB">$bzstr</span><span style="color: #007700">);<br />echo </span><span style="color: #DD0000">"Decompressed String: "</span><span style="color: #007700">;<br />echo </span><span style="color: #0000BB">$str</span><span style="color: #007700">;<br />echo </span><span style="color: #DD0000">"\n&lt;br /&gt;\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.bzdecompress-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.bzcompress.php" class="function" rel="rdfs-seeAlso">bzcompress()</a> - Compress a string into bzip2 encoded data</span></li>
   </ul>
  </p>
 </div>

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