<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="sv">
	<id>https://wiki.linux.se/index.php?action=history&amp;feed=atom&amp;title=gzuncompress%28%29</id>
	<title>gzuncompress() - Versionshistorik</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.linux.se/index.php?action=history&amp;feed=atom&amp;title=gzuncompress%28%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.linux.se/index.php?title=gzuncompress()&amp;action=history"/>
	<updated>2026-04-28T21:35:27Z</updated>
	<subtitle>Versionshistorik för denna sida på wikin</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://wiki.linux.se/index.php?title=gzuncompress()&amp;diff=6278&amp;oldid=prev</id>
		<title>Admin: Skapade sidan med &#039;== gzcompress == &#039;&#039;&#039;(PHP 4 &gt;= 4.0.1, PHP 5, PHP 7, PHP 8)&#039;&#039;&#039;  &#039;&#039;&#039;gzcompress — Compress a string&#039;&#039;&#039;  === Description === &lt;code&gt; gzcompress(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_DEFLATE): string|false &lt;/code&gt; This function compresses the given string using the ZLIB data format.  For details on the ZLIB compression algorithm see the document &quot;» ZLIB Compressed Data Format Specification version 3.3&quot; (RFC 1950).  &#039;&#039;&#039;Note:&#039;&#039;&#039;  This is not the same as...&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.linux.se/index.php?title=gzuncompress()&amp;diff=6278&amp;oldid=prev"/>
		<updated>2024-12-02T09:43:38Z</updated>

		<summary type="html">&lt;p&gt;Skapade sidan med &amp;#039;== gzcompress == &amp;#039;&amp;#039;&amp;#039;(PHP 4 &amp;gt;= 4.0.1, PHP 5, PHP 7, PHP 8)&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;gzcompress — Compress a string&amp;#039;&amp;#039;&amp;#039;  === Description === &amp;lt;code&amp;gt; gzcompress(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_DEFLATE): string|false &amp;lt;/code&amp;gt; This function compresses the given string using the ZLIB data format.  For details on the ZLIB compression algorithm see the document &amp;quot;» ZLIB Compressed Data Format Specification version 3.3&amp;quot; (RFC 1950).  &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039;  This is not the same as...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ny sida&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== gzcompress ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;(PHP 4 &amp;gt;= 4.0.1, PHP 5, PHP 7, PHP 8)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;gzcompress — Compress a string&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
gzcompress(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_DEFLATE): string|false&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
This function compresses the given string using the ZLIB data format.&lt;br /&gt;
&lt;br /&gt;
For details on the ZLIB compression algorithm see the document &amp;quot;» ZLIB Compressed Data Format Specification version 3.3&amp;quot; (RFC 1950).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is not the same as gzip compression, which includes some header data. See [[gzencode()]] for gzip compression.&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;data:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
The data to compress.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;level:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
The level of compression. Can be given as 0 for no compression up to 9 for maximum compression.&lt;br /&gt;
&lt;br /&gt;
If -1 is used, the default compression of the zlib library is used which is 6.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;encoding:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
One of ZLIB_ENCODING_* constants.&lt;br /&gt;
&lt;br /&gt;
==== Return Values ====&lt;br /&gt;
The compressed string or false if an error occurred.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example #1 gzcompress() example&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$compressed = gzcompress(&amp;#039;Compress me&amp;#039;, 9);&lt;br /&gt;
echo $compressed;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
* [[gzdeflate()]] - Deflate a string&lt;br /&gt;
* [[gzinflate()]] - Inflate a deflated string&lt;br /&gt;
* [[gzuncompress()]] - Uncompress a compressed string&lt;br /&gt;
* [[gzencode()]] - Create a gzip compressed string&lt;br /&gt;
&lt;br /&gt;
= Sidslut =&lt;br /&gt;
&lt;br /&gt;
Orginalhemsidan på Engelska :https://www.php.net/manual/en/function.gzcompress.php&lt;br /&gt;
&amp;lt;BR&amp;gt;[[PHP]]&lt;br /&gt;
[[Funktioner]]&lt;br /&gt;
[[Funktionsreferens]]&lt;br /&gt;
[[Komprimerings- och arkivtillägg]]&lt;br /&gt;
[[Zlib — Zlib Komprimering]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
Det här är en maskinöversättning av PHP-manualen till svenska. Om du hittar fel är vi tacksamma om du rapporterar dem via formuläret som finns på &lt;br /&gt;
https://www.linux.se/kontaka-linux-se/&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;Tack till [https://www.Datorhjalp.se Datorhjälp Stockholm] som har  sponsrat [https://www.linux.se Linux.se] med webbhotell.&lt;br /&gt;
&lt;br /&gt;
[[Kategori:Php]]&lt;br /&gt;
[[Kategori:Komprimerings- och Arkivtillägg]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>