Uncompressing a string
Uncompress content: gzuncompress()
To uncompress content/string previously compressed with gzcompress()
you can use gzuncompress()
function.
After that, you will obtain the initial string.
Combined with serialized we are going to implement the following workflow:
- serialize an array;
- compress the serialized array;
- uncompress the compressed data;
- unserialize the uncompressed content