php获取到的数组中包含object,
array(6) {
["dev_system"]=>
string(3) "ios"
["json_expired"]=>
string(15) "[object Object]"
["video_ext"]=>
string(4) ".mp4"
["file_video"]=>
string(107) "http://tmp/wx2cf493c28d639a7d.o6zAJs2-BlpW_m7zOglwJfmmJmpw.p9MALdMHhG1Q1c228b07b2f2bc699a6399b18dcbfd84.mp4"
["v_size_o"]=>
string(7) "4616520"
["login_code"]=>
string(32) "0018H9Ga10whVz0B6KHa1G0ZT318H9GQ"
}
可以看到 json_expired 是个 object,现在需要取出 json_expired中的值,试了 get_object_vars 和 json_decode取不出来 ,怎么破?
echo "<pre>";
$arr_post=json_decode(json_encode($arr_post),true);
var_dump($arr_post);
echo "</pre>";
array(6) {
["dev_system"]=>
string(3) "ios"
["json_expired"]=>
string(15) "[object Object]"
["video_ext"]=>
string(4) ".mp4"
["file_video"]=>
string(107) "http://tmp/wx2cf493c28d639a7d.o6zAJs2-BlpW_m7zOglwJfmmJmpw.p9MALdMHhG1Q1c228b07b2f2bc699a6399b18dcbfd84.mp4"
["v_size_o"]=>
string(7) "4616520"
["login_code"]=>
string(32) "0018H9Ga10whVz0B6KHa1G0ZT318H9GQ"
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…