Source of: /manual/en/function.gzdecode.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.zlib.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'function.gzdecode.php',
1 => 'gzdecode',
),
'up' =>
array (
0 => 'ref.zlib.php',
1 => 'Zlib Functions',
),
'prev' =>
array (
0 => 'function.gzcompress.php',
1 => 'gzcompress',
),
'next' =>
array (
0 => 'function.gzdeflate.php',
1 => 'gzdeflate',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.gzdecode" class="refentry">
<div class="refnamediv">
<h1 class="refname">gzdecode</h1>
<p class="verinfo">(PHP 6 >= 6.0.0)</p><p class="refpurpose"><span class="refname">gzdecode</span> — <span class="dc-title">Decodes a gzip compressed string</span></p>
</div>
<a name="function.gzdecode.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="type">string</span> <span class="methodname"><b>gzdecode</b></span>
( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$data</tt></span>
[, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$length</tt></span>
] )</div>
<p class="para rdfs-comment">
This function returns a decoded version of the input
<i><tt class="parameter">data</tt></i>
.
</p>
</div>
<a name="function.gzdecode.parameters"></a><div class="refsect1 parameters">
<h3 class="title">Parameters</h3>
<p class="para">
</p><dl>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">data</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
The data to decode, encoded by <a href="function.gzencode.php" class="function">gzencode()</a>.
</p>
</dd>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">length</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
The maximum length of data to decode.
</p>
</dd>
</dl>
<p>
</p>
</div>
<a name="function.gzdecode.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
The decoded string, or <b><tt class="constant">FALSE</tt></b> if an error occurred.
</p>
</div>
<a name="function.gzdecode.seealso"></a><div class="refsect1 seealso">
<h3 class="title">See Also</h3>
<p class="para">
</p><ul class="simplelist">
<li class="member"><a href="function.gzencode.php" class="function" rel="rdfs-seeAlso">gzencode()</a> - Create a gzip compressed string</li>
</ul><p>
</p>
</div>
</div><?php manual_footer(); ?>