gzip, deflate 解压缩 php
gzip, deflate decompress php
我有一个编码字符串,我该如何解码它
eNpTNXdSNTJKLSrKLwLSqsaOJUWlqapGzkBOSmpxMlQQSKYlZuakpqgaGSSWlmTkF2VWJZZk5ueBpM1dALkhFLk=
gzdecode, gzinflate, zlib_decode 输出 false
这里有很多层要解码:
$result = json_decode(urldecode(zlib_decode(base64_decode($str))), true);
这产生:
Array
(
[error] => 1
[descr] => failed authorization
)
我有一个编码字符串,我该如何解码它
eNpTNXdSNTJKLSrKLwLSqsaOJUWlqapGzkBOSmpxMlQQSKYlZuakpqgaGSSWlmTkF2VWJZZk5ueBpM1dALkhFLk=
gzdecode, gzinflate, zlib_decode 输出 false
这里有很多层要解码:
$result = json_decode(urldecode(zlib_decode(base64_decode($str))), true);
这产生:
Array
(
[error] => 1
[descr] => failed authorization
)