Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<LZF Functionslzf_decompress>
^LZF FunctionsLast updated: Mon, 26 Oct 2026

lzf_compress

(PECL lzf >= 0.1.0)

lzf_compress — LZF compression

Description

function lzf_compress(string $data): string

lzf_compress() compresses the given data string using LZF encoding.

Parameters

data

The string to compress.

Return Values

Returns the compressed data or false if an error occurred.

See Also


<LZF Functionslzf_decompress>
^LZF FunctionsLast updated: Mon, 26 Oct 2026