Pop\Compress\Lzf::compress PHP 메소드

compress() 공개 정적인 메소드

Static method to compress data
public static compress ( string $data ) : mixed
$data string
리턴 mixed
    public static function compress($data)
    {
        return lzf_compress($data);
    }

Usage Example

예제 #1
0
 public function testLzf()
 {
     if (function_exists('lzf_compress')) {
         $compressed = Lzf::compress($this->string);
         $decompressed = Lzf::decompress($compressed);
         $this->assertEquals($this->string, $decompressed);
     }
 }