21,886
社区成员
发帖
与我相关
我的任务
分享
array(2) {
[0] => NULL
[1] => object(Qiniu\Http\Error)#37 (2) {
["url":"Qiniu\Http\Error":private] => string(71) "http://rs.qiniu.com/delete/dGVzdHlqczphcmNoaXRlY3R1cmUtMTQ3NzA5OC5qcGc="
["response":"Qiniu\Http\Error":private] => object(Qiniu\Http\Response)#38 (6) {
["statusCode"] => int(612)
["headers"] => array(8) {
["Server"] => string(9) "openresty"
["Date"] => string(19) "Sat, 03 Oct 2020 01"
["Content-Type"] => string(16) "application/json"
["Content-Length"] => string(2) "37"
["Connection"] => string(10) "keep-alive"
["Cache-Control"] => string(8) "no-store"
["X-Reqid"] => string(16) "0cQAAABpWCooVjoW"
["X-Log"] => string(1) "-"
}
["body"] => string(37) "{"error":"no such file or directory"}"
["error"] => string(25) "no such file or directory"
["jsonData":"Qiniu\Http\Response":private] => array(1) {
["error"] => string(25) "no such file or directory"
}
["duration"] => float(0.074)
}
}
}
//使用json_decode()函数
$json = json_decode( $str, 1 );//$str代表你上面那段的字符串内容
$data=$json['1']['response'];
$error=$data['error'];
echo $error;