Decompress LZString in PHP

I used LZString in my JavaScript to compress some JSON data and then put it in my PHP program. ( http://pieroxy.net/blog/pages/lz-string/index.html )

I have a binary so I want to unpack in PHP, I use LZString.php

from this repository: https://github.com/nullpunkt/lz-string-php/blob/master/src/LZString.php

when i use the method compress()

i get an error, but when i use the method there decompressFromBase64()

is no error but this funstion returns an empty string!

how can i unpack LZString in php?

my data is the same as in this picture: enter image description here

+3


source to share





All Articles