snappy_compress

This function compress the given string using the Snappy data format

function snappy_compress(
  string $data,
): mixed;

For details on the Snappy compression algorithm go to http://code.google.com/p/snappy/.

Parameters

  • string $data - The data to compress

Returns

  • string - - The compressed string or FALSE if an error occurred.